You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
log.LogError("POST", authenticationEndpoint, 0, err, "Failed to make request for token")
50
+
log.LogError("authentication_request_error", "POST", authenticationEndpoint, 0, err, "Failed to make request for token")
50
51
returnerr
51
52
}
52
53
deferresp.Body.Close()
53
54
54
55
ifresp.StatusCode!=http.StatusOK {
55
-
log.Error("Received non-OK response while obtaining token", zap.Int("StatusCode", resp.StatusCode))
56
-
returnerr
56
+
log.LogError("token_authentication_failed", "POST", authenticationEndpoint, resp.StatusCode, fmt.Errorf("authentication failed with status code: %d", resp.StatusCode), "Token acquisition attempt resulted in a non-OK response")
0 commit comments