Skip to content

Commit

Permalink
add logging
Browse files Browse the repository at this point in the history
  • Loading branch information
Taimoor Ahmed authored and Taimoor Ahmed committed Aug 1, 2024
1 parent 1fff44e commit 7581470
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Original file line number Diff line number Diff line change
Expand Up @@ -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}.")
Expand Down

0 comments on commit 7581470

Please sign in to comment.