Skip to content

Commit

Permalink
accounting: fix debug printing when debug wasn't set
Browse files Browse the repository at this point in the history
  • Loading branch information
ncw committed Dec 13, 2024
1 parent 91af6da commit 500698c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fs/accounting/stats_groups.go
Original file line number Diff line number Diff line change
Expand Up @@ -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:]
Expand Down

0 comments on commit 500698c

Please sign in to comment.