fs/accounting: Restore "Max number of stats groups reached" log line

Changed log level to debug.
This commit is contained in:
Michał Matczuk 2020-01-03 14:46:37 +01:00 committed by Nick Craig-Wood
parent e75c1f70bb
commit 964f1f6a7e
1 changed files with 1 additions and 1 deletions

View File

@ -310,7 +310,7 @@ func (sg *statsGroups) set(group string, stats *StatsInfo) {
// Limit number of groups kept in memory.
if len(sg.order) >= fs.Config.MaxStatsGroups {
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)
r := (len(sg.order) - fs.Config.MaxStatsGroups) + 1
sg.order = sg.order[r:]