Skip to content

Commit

Permalink
aws: util remove if debug clause (#6735)
Browse files Browse the repository at this point in the history
Signed-off-by: Johannes Larsson <johannes.a.larsson@gmail.com>
  • Loading branch information
johanneslarsson committed May 7, 2024
1 parent c867c30 commit 9dbd95a
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions internal/providers/aws/util.go
Expand Up @@ -31,9 +31,7 @@ func DoRequestWithClient(req *http.Request, client *http.Client, desc string, lo
}

if resp.StatusCode != 200 {
if logger.GetLevel() == logging.Debug {
logger.Debug("Error response with response body: %s", body)
}
logger.Debug("Error response with response body: %s", body)
// could be 404 for role that's not available, but cover all the bases
return nil, errors.New(desc + " HTTP request returned unexpected status: " + resp.Status)
}
Expand Down

0 comments on commit 9dbd95a

Please sign in to comment.