Skip to content

Commit 2f11541

Browse files
rcohenmaJason Bolla
authored andcommitted
adding sdk fix for debug logs and fixing werker error
1 parent 073f9b6 commit 2f11541

File tree

3 files changed

+13
-22
lines changed

3 files changed

+13
-22
lines changed

provider/retry.go

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@ import (
44
"strings"
55
"time"
66

7-
"log"
8-
97
oci_common "github.com/oracle/oci-go-sdk/common"
108
)
119

@@ -109,11 +107,7 @@ func getRetryPolicy(disableNotFoundRetries bool, service string) *oci_common.Ret
109107
retryPolicy := &oci_common.RetryPolicy{
110108
MaximumNumberAttempts: 0,
111109
ShouldRetryOperation: func(response oci_common.OCIOperationResponse) bool {
112-
shouldRetry := shouldRetry(response, disableNotFoundRetries, service)
113-
if shouldRetry {
114-
log.Printf("[DEBUG] Got a retriable error. Waiting %ds before next attempt.", nextDuration(response)/time.Second)
115-
}
116-
return shouldRetry
110+
return shouldRetry(response, disableNotFoundRetries, service)
117111
},
118112
NextDuration: nextDuration,
119113
}

vendor/github.com/oracle/oci-go-sdk/common/log.go

Lines changed: 8 additions & 11 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

vendor/vendor.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2972,11 +2972,11 @@
29722972
"revisionTime": "2017-01-25T16:36:56Z"
29732973
},
29742974
{
2975-
"checksumSHA1": "xujct7/vSg2/7jg7czowfpZB1gA=",
2975+
"checksumSHA1": "a6iGTT3jGUBn6+gDZFfXQ63Xv54=",
29762976
"path": "github.com/oracle/oci-go-sdk",
2977-
"revision": "e881bff1bba54b689d22bbd180e3ba8da7693c02",
2978-
"revisionTime": "2018-02-22T21:05:06Z",
2979-
"tree": true,
2977+
"revision": "caf6155aca7721b6053ee8fd555e575d8c297098",
2978+
"revisionTime": "2018-02-16T02:23:06Z",
2979+
"tree": true
29802980
},
29812981
{
29822982
"checksumSHA1": "ImgLNIpeXsGjZGXw4rd+rwzQxpo=",

0 commit comments

Comments
 (0)