only print compression level starting from repository version 2

This commit is contained in:
Michael Eischer 2022-11-04 22:40:07 +01:00
parent 8dd95b710e
commit fd4d23460f

View file

@ -498,7 +498,11 @@ func OpenRepository(ctx context.Context, opts GlobalOptions) (*repository.Reposi
id = id[:8]
}
if !opts.JSON {
Verbosef("repository %v opened (version %v, compression level %v)\n", id, s.Config().Version, opts.Compression.String())
extra := ""
if s.Config().Version >= 2 {
extra = ", compression level " + opts.Compression.String()
}
Verbosef("repository %v opened (version %v%s)\n", id, s.Config().Version, extra)
}
}