fs: Always show stats when using --dry-run or --interactive #4624

This commit is contained in:
Nick Craig-Wood 2020-12-29 19:40:05 +00:00
parent 1d40bc1901
commit f425950a52
1 changed files with 3 additions and 0 deletions

View File

@ -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")