Skip to content

Commit

Permalink
Log the body of taskcluster errors
Browse files Browse the repository at this point in the history
This means we log the entire error message instead of just the http
status code.
  • Loading branch information
jcristau authored and ahal committed Oct 31, 2023
1 parent 492d5a6 commit 4f364e6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/taskgraph/util/taskcluster.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ def _do_request(url, method=None, **kwargs):
if response.status_code >= 400:
# Consume content before raise_for_status, so that the connection can be
# reused.
response.content
logger.warning("response body: %s", response.text)
response.raise_for_status()
return response

Expand Down

0 comments on commit 4f364e6

Please sign in to comment.