1
0
Fork 0
mirror of https://github.com/restic/restic.git synced 2024-12-22 15:57:07 +00:00

check: only show additional files if verbose output is enabled

Additional files are nearly always caused by interrupted backup runs.
This is unproblematic, thus don't pollute the check output with it.
This commit is contained in:
Michael Eischer 2024-06-30 11:12:08 +02:00
parent 6d9dfff1cb
commit 879ba07a87

View file

@ -289,7 +289,7 @@ func runCheck(ctx context.Context, opts CheckOptions, gopts GlobalOptions, args
if errors.As(err, &packErr) { if errors.As(err, &packErr) {
if packErr.Orphaned { if packErr.Orphaned {
orphanedPacks++ orphanedPacks++
printer.P("%v\n", err) printer.V("%v\n", err)
} else { } else {
if packErr.Truncated { if packErr.Truncated {
salvagePacks.Insert(packErr.ID) salvagePacks.Insert(packErr.ID)