From f1a493914f7c33f8f93646cfe2b39eea6a5dbf2a Mon Sep 17 00:00:00 2001 From: "alex.sharov" Date: Thu, 4 Nov 2021 16:05:33 +0700 Subject: [PATCH] save --- cmd/sentry/download/sentry.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/sentry/download/sentry.go b/cmd/sentry/download/sentry.go index a2004ec15..e2c077eef 100644 --- a/cmd/sentry/download/sentry.go +++ b/cmd/sentry/download/sentry.go @@ -883,7 +883,7 @@ func (ss *SentryServerImpl) send(msgID proto_sentry.MessageId, peerID string, b ch := ss.messageStreams[msgID][i] ch <- req if len(ch) > MessagesQueueSize/2 { - log.Warn("[sentry] consuming is slow", "msgID", msgID.String()) + log.Debug("[sentry] consuming is slow, drop 50% of old messages", "msgID", msgID.String()) // evict old messages from channel for j := 0; j < MessagesQueueSize/4; j++ { select {