mirror of
https://github.com/kopia/kopia.git
synced 2026-03-17 21:56:14 -04:00
Additional logging to GCS retry loop
This commit is contained in:
@@ -30,7 +30,11 @@ func retry(desc string, f func() (interface{}, error)) (interface{}, error) {
|
||||
v, err = f()
|
||||
}
|
||||
if retryCount > 0 {
|
||||
log.Printf("Success calling %v after %v retries.", desc, retryCount)
|
||||
if err == nil {
|
||||
log.Printf("Success calling %v after %v retries.", desc, retryCount)
|
||||
} else {
|
||||
log.Printf("Permanent failure calling %v after %v retries.", desc, retryCount)
|
||||
}
|
||||
}
|
||||
return v, err
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user