fix: log notification errors only once (#11350)

master
Ritesh H Shukla 4 years ago committed by GitHub
parent 2680772d4b
commit c8489a8f0c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      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
}

Loading…
Cancel
Save