From 4fea3a413dd5798fdc80ef51c2d661a4724491b5 Mon Sep 17 00:00:00 2001 From: Michael Eischer Date: Sat, 22 Oct 2022 20:18:46 +0200 Subject: [PATCH 1/2] show selected compression level when opening repository --- cmd/restic/global.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/restic/global.go b/cmd/restic/global.go index 25dae55f2..6b3d65140 100644 --- a/cmd/restic/global.go +++ b/cmd/restic/global.go @@ -498,7 +498,7 @@ func OpenRepository(ctx context.Context, opts GlobalOptions) (*repository.Reposi id = id[:8] } if !opts.JSON { - Verbosef("repository %v opened (repository version %v) successfully, password is correct\n", id, s.Config().Version) + Verbosef("repository %v opened (repository version %v, compression level %v)\n", id, s.Config().Version, opts.Compression.String()) } } From 8e51e1e605be6503fc48cf18a01b104ab9cf2d0a Mon Sep 17 00:00:00 2001 From: Michael Eischer Date: Sat, 29 Oct 2022 11:22:00 +0200 Subject: [PATCH 2/2] shorten 'repository opened' output --- cmd/restic/global.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/restic/global.go b/cmd/restic/global.go index 6b3d65140..96c640f76 100644 --- a/cmd/restic/global.go +++ b/cmd/restic/global.go @@ -498,7 +498,7 @@ func OpenRepository(ctx context.Context, opts GlobalOptions) (*repository.Reposi id = id[:8] } if !opts.JSON { - Verbosef("repository %v opened (repository version %v, compression level %v)\n", id, s.Config().Version, opts.Compression.String()) + Verbosef("repository %v opened (version %v, compression level %v)\n", id, s.Config().Version, opts.Compression.String()) } }