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

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})