mirror of
https://github.com/octoleo/restic.git
synced 2025-04-05 23:11:49 +00:00
log unexpected errs from b2 ListCurrentObject()
gh-1385
This commit is contained in:
parent
f854a41ba9
commit
2f8147af59
@ -319,6 +319,8 @@ func (be *b2Backend) List(ctx context.Context, t restic.FileType) <-chan string
|
|||||||
objs, c, err := be.bucket.ListCurrentObjects(ctx, be.listMaxItems, cur)
|
objs, c, err := be.bucket.ListCurrentObjects(ctx, be.listMaxItems, cur)
|
||||||
be.sem.ReleaseToken()
|
be.sem.ReleaseToken()
|
||||||
if err != nil && err != io.EOF {
|
if err != nil && err != io.EOF {
|
||||||
|
// TODO: return err to caller once err handling in List() is improved
|
||||||
|
debug.Log("List: %v", err)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
debug.Log("returned %v items", len(objs))
|
debug.Log("returned %v items", len(objs))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user