Skip to content

Commit 3a4a800

Browse files
committed
fix(logging): Set curl string output to trace
1 parent ced4708 commit 3a4a800

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

auth_providers/auth_core.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -503,7 +503,7 @@ func (c *CommandAuthConfig) Authenticate() error {
503503
c.HttpClient.Timeout = time.Duration(c.HttpClientTimeout) * time.Second
504504

505505
cResp, cErr := c.HttpClient.Do(req)
506-
curlStr, cErr := RequestToCurl(req) // Doing this after the request is sent will include auth headers and other request details
506+
curlStr, cErr := RequestToCurl(req)
507507
if cErr == nil {
508508
log.Printf("[TRACE] curl command: %s", curlStr)
509509
}

auth_providers/auth_oauth.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -457,7 +457,7 @@ func (t *oauth2Transport) RoundTrip(req *http.Request) (*http.Response, error) {
457457
reqCopy := req.Clone(req.Context())
458458
token.SetAuthHeader(reqCopy)
459459
requestCurlStr, _ := RequestToCurl(reqCopy)
460-
log.Printf("[DEBUG] curl command: %s", requestCurlStr)
460+
log.Printf("[TRACE] curl command: %s", requestCurlStr)
461461

462462
return t.base.RoundTrip(reqCopy)
463463
}

0 commit comments

Comments
 (0)