mirror of
https://github.com/restic/restic.git
synced 2026-10-20 08:08:11 +00:00
backends: pass error logger to backends
This commit is contained in:
1 parent
13f743e26b
commit
4dc71f24c5
31 files changed
+96
-96
No files matched your search
Vendored
+2
-2
@@ -237,8 +237,8 @@ func IsOld(t time.Time, maxAge time.Duration) bool {
|
||||
}
|
||||
|
||||
// Wrap returns a backend with a cache.
|
||||
func (c *Cache) Wrap(be backend.Backend) backend.Backend {
|
||||
return newBackend(be, c)
|
||||
func (c *Cache) Wrap(be backend.Backend, errorLog func(string, ...interface{})) backend.Backend {
|
||||
return newBackend(be, c, errorLog)
|
||||
}
|
||||
|
||||
// BaseDir returns the base directory.
|
||||
|
||||
Reference in new issue
Block a user