Skip to content

Commit

Permalink
CMR-10254: add debugging for deployment.
Browse files Browse the repository at this point in the history
  • Loading branch information
eereiter committed Feb 5, 2025
1 parent 86101fe commit 9c7c297
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion subscription/src/sns.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ def create_topic(self, topic_name):
try:
topic = self.sns_resource.create_topic(Name=topic_name)
except ClientError as error:
logger.error("Subscription Worker could not get the topic ARN: {error}.")
logger.error(f"Subscription Worker could not get the topic ARN: {error}.")
raise error
else:
return topic
Expand Down
1 change: 1 addition & 0 deletions subscription/src/subscription_worker.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ def poll_queue(running):
sns_resource = boto3.resource("sns", region_name=AWS_REGION)
sns_client = Sns(sns_resource)
topic = sns_client.create_topic(SNS_NAME)
logger.info(f"The passed in topic name is {SNS_NAME}")

access_control = AccessControl()
while running.value:
Expand Down

0 comments on commit 9c7c297

Please sign in to comment.