Skip to content

Commit

Permalink
[Logging] Include results in log when alerting (#44)
Browse files Browse the repository at this point in the history
improve warning log by including results
  • Loading branch information
bh2smith authored Jun 12, 2023
1 parent 1df1247 commit 0a4669b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ def run_loop(self) -> None:
results = self.dune.refresh(query.query, self.ping_frequency)
alert = query.get_alert(results)
if alert.level == AlertLevel.SLACK:
log.warning(alert.message)
log.warning(f"alerting with {alert.message} on result set {results}")
self.alerter.post(alert.message)
elif alert.level == AlertLevel.LOG:
log.info(alert.message)

0 comments on commit 0a4669b

Please sign in to comment.