From 879ba07a87d1819468e38f41d69dfa9544e30ffa Mon Sep 17 00:00:00 2001 From: Michael Eischer Date: Sun, 30 Jun 2024 11:12:08 +0200 Subject: [PATCH] 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. --- cmd/restic/cmd_check.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/restic/cmd_check.go b/cmd/restic/cmd_check.go index ffb97ccdb..4cc9c666e 100644 --- a/cmd/restic/cmd_check.go +++ b/cmd/restic/cmd_check.go @@ -289,7 +289,7 @@ func runCheck(ctx context.Context, opts CheckOptions, gopts GlobalOptions, args if errors.As(err, &packErr) { if packErr.Orphaned { orphanedPacks++ - printer.P("%v\n", err) + printer.V("%v\n", err) } else { if packErr.Truncated { salvagePacks.Insert(packErr.ID)