forked from TrueCloudLab/restic
cache: cleanup debug logs
This commit is contained in:
parent
5214af88e2
commit
ac805d6838
1 changed files with 3 additions and 1 deletions
4
internal/cache/backend.go
vendored
4
internal/cache/backend.go
vendored
|
@ -181,7 +181,9 @@ func (b *Backend) Load(ctx context.Context, h backend.Handle, length int, offset
|
|||
|
||||
inCache, err = b.loadFromCache(h, length, offset, consumer)
|
||||
if inCache {
|
||||
debug.Log("error loading %v from cache: %v", h, err)
|
||||
if err != nil {
|
||||
debug.Log("error loading %v from cache: %v", h, err)
|
||||
}
|
||||
return err
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue