From f425950a525219eabf6c123c9cff544eea818628 Mon Sep 17 00:00:00 2001 From: Nick Craig-Wood Date: Tue, 29 Dec 2020 19:40:05 +0000 Subject: [PATCH] fs: Always show stats when using --dry-run or --interactive #4624 --- fs/config/configflags/configflags.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/fs/config/configflags/configflags.go b/fs/config/configflags/configflags.go index 2e4bf3426..e5fc527bf 100644 --- a/fs/config/configflags/configflags.go +++ b/fs/config/configflags/configflags.go @@ -150,6 +150,9 @@ func SetFlags(ci *fs.ConfigInfo) { } else if verbose >= 1 { ci.LogLevel = fs.LogLevelInfo } + if (ci.DryRun || ci.Interactive) && ci.StatsLogLevel > fs.LogLevelNotice { + ci.StatsLogLevel = fs.LogLevelNotice + } if quiet { if verbose > 0 { log.Fatalf("Can't set -v and -q")