mirror of
https://github.com/minio/minio.git
synced 2024-12-24 22:25:54 -05:00
tier-stats: Avoid repeated logs (#16774)
This commit is contained in:
parent
a6057c35cc
commit
56c57e2c53
@ -1377,7 +1377,7 @@ func (sys *NotificationSys) GetLastDayTierStats(ctx context.Context) DailyAllTie
|
|||||||
merged := globalTransitionState.getDailyAllTierStats()
|
merged := globalTransitionState.getDailyAllTierStats()
|
||||||
for i, stat := range lastDayStats {
|
for i, stat := range lastDayStats {
|
||||||
if errs[i] != nil {
|
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
|
continue
|
||||||
}
|
}
|
||||||
merged.merge(stat)
|
merged.merge(stat)
|
||||||
|
Loading…
Reference in New Issue
Block a user