mirror of
https://github.com/rclone/rclone.git
synced 2024-12-22 15:11:56 +01:00
accounting: fix debug printing when debug wasn't set
This commit is contained in:
parent
91af6da068
commit
500698c5be
@ -322,7 +322,7 @@ func (sg *statsGroups) set(ctx context.Context, group string, stats *StatsInfo)
|
|||||||
// Limit number of groups kept in memory.
|
// Limit number of groups kept in memory.
|
||||||
if len(sg.order) >= ci.MaxStatsGroups {
|
if len(sg.order) >= ci.MaxStatsGroups {
|
||||||
group := sg.order[0]
|
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)
|
delete(sg.m, group)
|
||||||
r := (len(sg.order) - ci.MaxStatsGroups) + 1
|
r := (len(sg.order) - ci.MaxStatsGroups) + 1
|
||||||
sg.order = sg.order[r:]
|
sg.order = sg.order[r:]
|
||||||
|
Loading…
Reference in New Issue
Block a user