Skip to content

Commit 8d42c5d

Browse files
committed
CMR-10388: Fixing logging
1 parent ab761d9 commit 8d42c5d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

subscription/src/access_control.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ def get_url_from_parameter_store(self):
4040

4141
if access_control_url:
4242
self.url = access_control_url
43-
logger.debug("Subscription Worker Access-Control URL:" + self.url)
43+
logger.debug(f"Subscription Worker Access-Control URL: {self.url}")
4444
return
4545
else:
4646
# This block gets the access_control URL from the AWS parameter store.
@@ -66,7 +66,7 @@ def get_url_from_parameter_store(self):
6666
host = env_vars.get_var(name=host_param_name)
6767
context = env_vars.get_var(name=context_param_name)
6868
self.url = f"{protocol}://{host}:{port}/{context}"
69-
logger.debug("Subscription Worker Access-Control URL:" + self.url)
69+
logger.debug(f"Subscription Worker Access-Control URL: {self.url}")
7070

7171
def get_url(self):
7272
"""This function returns the access control URL if it has already been constructed, otherwise it constructs the URL and then returns it."""
@@ -95,7 +95,7 @@ def get_permissions(self, subscriber_id, concept_id):
9595
if response.status_code == 200:
9696
# Request was successful
9797
data = response.text
98-
logger.debug("Response data:", data)
98+
logger.debug(f"Response data: {data}")
9999
return data
100100
else:
101101
# Request failed

0 commit comments

Comments
 (0)