Skip to content

Commit a324478

Browse files
committed
Fix error handling in BasicAuthTokenAcquisition function
1 parent c318407 commit a324478

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

authenticationhandler/basicauthentication.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ func (h *AuthTokenHandler) BasicAuthTokenAcquisition(apiHandler apihandler.APIHa
3434

3535
resp, err := httpClient.Do(req)
3636
if err != nil {
37-
h.Logger.LogError("authentication_request_error", "POST", authenticationEndpoint, resp.StatusCode, resp.Status, err, "Failed to make request for token")
37+
h.Logger.LogError("authentication_request_error", "POST", authenticationEndpoint, 0, "", err, "Failed to make request for token")
3838
return err
3939
}
4040
defer resp.Body.Close()

0 commit comments

Comments
 (0)