From c8489a8f0cf7ac8b9c68a869bda3495cd776bfcc Mon Sep 17 00:00:00 2001 From: Ritesh H Shukla Date: Thu, 28 Jan 2021 13:40:31 -0800 Subject: [PATCH] fix: log notification errors only once (#11350) --- cmd/notification.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/notification.go b/cmd/notification.go index 006644b1c..998f4d42a 100644 --- a/cmd/notification.go +++ b/cmd/notification.go @@ -467,7 +467,7 @@ func (sys *NotificationSys) updateBloomFilter(ctx context.Context, current uint6 defer mu.Unlock() if err != nil || !serverBF.Complete || bf == nil { - logger.LogIf(ctx, err) + logger.LogOnceIf(ctx, err, fmt.Sprintf("host:%s, cycle:%d", client.host, current), client.cycleServerBloomFilter) bf = nil return nil }