From 56c57e2c5316aa62a84be0e5b6b644c7782fc051 Mon Sep 17 00:00:00 2001 From: Krishnan Parthasarathi Date: Tue, 7 Mar 2023 16:43:05 -0800 Subject: [PATCH] tier-stats: Avoid repeated logs (#16774) --- cmd/notification.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/notification.go b/cmd/notification.go index a45d3fd49..251ee0612 100644 --- a/cmd/notification.go +++ b/cmd/notification.go @@ -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)