From 500698c5be5394301f30eaed1c4def24299bf7eb Mon Sep 17 00:00:00 2001 From: Nick Craig-Wood Date: Tue, 10 Dec 2024 16:39:29 +0000 Subject: [PATCH] accounting: fix debug printing when debug wasn't set --- fs/accounting/stats_groups.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/accounting/stats_groups.go b/fs/accounting/stats_groups.go index 952b17596..5f8e44d17 100644 --- a/fs/accounting/stats_groups.go +++ b/fs/accounting/stats_groups.go @@ -322,7 +322,7 @@ func (sg *statsGroups) set(ctx context.Context, group string, stats *StatsInfo) // Limit number of groups kept in memory. if len(sg.order) >= ci.MaxStatsGroups { group := sg.order[0] - fs.LogPrintf(fs.LogLevelDebug, nil, "Max number of stats groups reached removing %s", group) + fs.Debugf(nil, "Max number of stats groups reached removing %s", group) delete(sg.m, group) r := (len(sg.order) - ci.MaxStatsGroups) + 1 sg.order = sg.order[r:]