From 23aa0d39c11b8276ac92460bc832cdbc1c06fcf0 Mon Sep 17 00:00:00 2001 From: SaadYousaf Date: Mon, 23 May 2022 15:30:39 +0500 Subject: [PATCH] fix: add investigation log for comment client request error --- .../djangoapps/django_comment_common/comment_client/utils.py | 1 + 1 file changed, 1 insertion(+) diff --git a/openedx/core/djangoapps/django_comment_common/comment_client/utils.py b/openedx/core/djangoapps/django_comment_common/comment_client/utils.py index 5c05206067..2432ab36be 100644 --- a/openedx/core/djangoapps/django_comment_common/comment_client/utils.py +++ b/openedx/core/djangoapps/django_comment_common/comment_client/utils.py @@ -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: