tier-stats: Avoid repeated logs (#16774)

This commit is contained in:
Krishnan Parthasarathi 2023-03-07 16:43:05 -08:00 committed by GitHub
parent a6057c35cc
commit 56c57e2c53
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1377,7 +1377,7 @@ func (sys *NotificationSys) GetLastDayTierStats(ctx context.Context) DailyAllTie
merged := globalTransitionState.getDailyAllTierStats()
for i, stat := range lastDayStats {
if errs[i] != nil {
logger.LogIf(ctx, fmt.Errorf("failed to fetch last day tier stats: %w", errs[i]))
logger.LogOnceIf(ctx, fmt.Errorf("failed to fetch last day tier stats: %w", errs[i]), sys.peerClients[i].host.String())
continue
}
merged.merge(stat)