Add --stats-log-level so can see --stats without -v - fixes #1180

The most common use for this flag is likely to be showing the stats
without using -v by using `--stats-log-level NOTICE`.
This commit is contained in:
Nick Craig-Wood
2017-06-26 22:50:37 +01:00
parent 33f302a06b
commit aa20486485
5 changed files with 54 additions and 18 deletions
+1 -1
View File
@@ -203,7 +203,7 @@ Elapsed time: %10v
// Log outputs the StatsInfo to the log
func (s *StatsInfo) Log() {
Infof(nil, "%v\n", s)
LogLevelPrintf(Config.StatsLogLevel, nil, "%v\n", s)
}
// Bytes updates the stats for bytes bytes