Don’t print too many messages when deleting files

Print detailed debug messages on file deletions only when --verbose=2 is used
This commit is contained in:
plumbeo 2020-09-27 14:24:04 +02:00 committed by GitHub
parent 14b312f00d
commit 009bd907f2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -48,7 +48,7 @@ func deleteFiles(gopts GlobalOptions, ignoreError bool, repo restic.Repository,
return err
}
}
if !gopts.JSON && gopts.verbosity >= 2 {
if !gopts.JSON && gopts.verbosity > 2 {
Verbosef("removed %v\n", h)
}
bar.Report(restic.Stat{Blobs: 1})