Skip to content

Commit

Permalink
fix: add investigation log for comment client request error
Browse files Browse the repository at this point in the history
  • Loading branch information
SaadYousaf authored and saadyousafarbi committed May 24, 2022
1 parent 25df9ca commit 23aa0d3
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ def perform_request(method, url, data_or_params=None, raw=False,
metric_tags.append('result:success')

if 200 < status_code < 500: # lint-amnesty, pylint: disable=no-else-raise
log.info(f'Investigation Log: CommentClientRequestError for request with {method} and params {params}')
raise CommentClientRequestError(response.text, response.status_code)
# Heroku returns a 503 when an application is in maintenance mode
elif status_code == 503:
Expand Down

0 comments on commit 23aa0d3

Please sign in to comment.