Skip to content

Commit cf84c9d

Browse files
authored
fix: fix minor problem with debug message (#231)
Signed-off-by: Phil Adams <[email protected]>
1 parent 031431d commit cf84c9d

File tree

3 files changed

+7
-4
lines changed

3 files changed

+7
-4
lines changed

.secrets.baseline

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"files": "go.sum|package-lock.json|^.secrets.baseline$",
44
"lines": null
55
},
6-
"generated_at": "2024-10-09T21:09:28Z",
6+
"generated_at": "2024-10-21T14:32:01Z",
77
"plugins_used": [
88
{
99
"name": "AWSKeyDetector"
@@ -148,7 +148,7 @@
148148
"hashed_secret": "bc2f74c22f98f7b6ffbc2f67453dbfa99bce9a32",
149149
"is_secret": false,
150150
"is_verified": false,
151-
"line_number": 857,
151+
"line_number": 864,
152152
"type": "Secret Keyword",
153153
"verified_result": null
154154
}

Makefile

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
# Makefile to build go-sdk-core library
22
GO=go
33
LINT=golangci-lint
4-
GOSEC=gosec
54
FORMATTER=goimports
65

76
COV_OPTS=-coverprofile=coverage.txt -covermode=atomic
@@ -26,3 +25,7 @@ format:
2625

2726
tidy:
2827
${GO} mod tidy
28+
29+
detect-secrets:
30+
detect-secrets scan --update .secrets.baseline
31+
detect-secrets audit .secrets.baseline

core/base_service.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -919,7 +919,7 @@ func IBMCloudSDKRetryPolicy(ctx context.Context, resp *http.Response, err error)
919919
return true, nil
920920
}
921921

922-
GetLogger().Debug("No retry for status code: %d\n")
922+
GetLogger().Debug("No retry for status code: %d\n", resp.StatusCode)
923923
return false, nil
924924
}
925925

0 commit comments

Comments
 (0)