From 7581470dd20be2c636d9ec0360d42aeece5a8d8b Mon Sep 17 00:00:00 2001 From: Taimoor Ahmed Date: Thu, 1 Aug 2024 13:28:46 +0500 Subject: [PATCH] add logging --- .../djangoapps/django_comment_common/comment_client/settings.py | 2 +- .../djangoapps/django_comment_common/comment_client/utils.py | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/openedx/core/djangoapps/django_comment_common/comment_client/settings.py b/openedx/core/djangoapps/django_comment_common/comment_client/settings.py index 6317dbc79853..4e93ceec354d 100644 --- a/openedx/core/djangoapps/django_comment_common/comment_client/settings.py +++ b/openedx/core/djangoapps/django_comment_common/comment_client/settings.py @@ -14,4 +14,4 @@ else: SERVICE_HOST_V2 = 'http://localhost:8000' -PREFIX_V2 = SERVICE_HOST_V2 + '/api/v1' +PREFIX_V2 = SERVICE_HOST_V2 + '/forum/forum_proxy/api/v1' 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 585e80264e14..b9d36cccb5a0 100644 --- a/openedx/core/djangoapps/django_comment_common/comment_client/utils.py +++ b/openedx/core/djangoapps/django_comment_common/comment_client/utils.py @@ -85,6 +85,8 @@ def perform_request(method, url, data_or_params=None, raw=False, headers=headers, timeout=config.connection_timeout ) + log.info(f"response v1 url {url} and data {response.json()}") + log.info(f"response v2 url {forum_v2_url} and data {response_v2.json()}") if response_v2 != response: log.error(f"Forum v2 diff for endpoint {url} with params={params}. \ Expected: {response}. Got: {response_v2}.")