Skip to content

Commit

Permalink
feat: log slack sends in DAQJobAlertSlack
Browse files Browse the repository at this point in the history
  • Loading branch information
furkan-bilgin committed Oct 16, 2024
1 parent 01de38d commit a8da5c8
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/daq/alert/alert_slack.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,9 @@ def alert_loop(self):
self.send_webhook(alert)

def send_webhook(self, alert: DAQJobMessageAlert):
self._logger.info(
f"Sending alert to Slack: [{alert.alert_info.severity}] {alert.alert_info.message}"
)
self._slack.post(
attachments=[
{
Expand Down

0 comments on commit a8da5c8

Please sign in to comment.