mirror of
https://github.com/rclone/rclone.git
synced 2025-12-12 06:24:14 +01:00
fs/accounting: Restore "Max number of stats groups reached" log line
Changed log level to debug.
This commit is contained in:
committed by
Nick Craig-Wood
parent
e75c1f70bb
commit
964f1f6a7e
@@ -310,7 +310,7 @@ func (sg *statsGroups) set(group string, stats *StatsInfo) {
|
|||||||
// Limit number of groups kept in memory.
|
// Limit number of groups kept in memory.
|
||||||
if len(sg.order) >= fs.Config.MaxStatsGroups {
|
if len(sg.order) >= fs.Config.MaxStatsGroups {
|
||||||
group := sg.order[0]
|
group := sg.order[0]
|
||||||
//fs.LogPrintf(fs.LogLevelInfo, nil, "Max number of stats groups reached removing %s", group)
|
fs.LogPrintf(fs.LogLevelDebug, nil, "Max number of stats groups reached removing %s", group)
|
||||||
delete(sg.m, group)
|
delete(sg.m, group)
|
||||||
r := (len(sg.order) - fs.Config.MaxStatsGroups) + 1
|
r := (len(sg.order) - fs.Config.MaxStatsGroups) + 1
|
||||||
sg.order = sg.order[r:]
|
sg.order = sg.order[r:]
|
||||||
|
|||||||
Reference in New Issue
Block a user