forked from TrueCloudLab/restic
only print compression level starting from repository version 2
This commit is contained in:
parent
8dd95b710e
commit
fd4d23460f
1 changed files with 5 additions and 1 deletions
|
@ -498,7 +498,11 @@ func OpenRepository(ctx context.Context, opts GlobalOptions) (*repository.Reposi
|
||||||
id = id[:8]
|
id = id[:8]
|
||||||
}
|
}
|
||||||
if !opts.JSON {
|
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)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue