Skip to content

Commit

Permalink
fix Print out the name of the SNS topic that a Notification is publis…
Browse files Browse the repository at this point in the history
…hed to for clarity in the logs aws-solutions#183
  • Loading branch information
thesuavehog committed Dec 13, 2023
1 parent 5244c64 commit 67483da
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions source/LambdaLayers/sechub_findings.py
Original file line number Diff line number Diff line change
Expand Up @@ -271,17 +271,18 @@ def notify(self):
'finding': self.finding_info
}

topic = 'SO0111-SHARR_Topic'
if self.send_to_sns:
sent_id = publish_to_sns(
'SO0111-SHARR_Topic',
topic,
json.dumps(
sns_notify_json,
indent=2,
default=str
),
self.__region
)
print(f'Notification message ID {sent_id} sent.')
print(f'Notification message ID {sent_id} sent to {topic}')
self.applogger.add_message(
self.severity + ': ' + self.message
)
Expand Down

0 comments on commit 67483da

Please sign in to comment.