Skip to content

Commit

Permalink
fix(notification): log exception on failure (#1115)
Browse files Browse the repository at this point in the history
This change updates the logging so that when a notification agent fails the exception is logged.

Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
  • Loading branch information
2 people authored and dbrougham committed Nov 7, 2021
1 parent 8e069d6 commit 326b725
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ public void processEvent(Event event) {
try {
sendNotifications(notification, application, event, config, status);
} catch (Exception e) {
log.error("failed to send {} message", getNotificationType());
log.error("failed to send {} message", getNotificationType(), e);
}
});
}
Expand Down

0 comments on commit 326b725

Please sign in to comment.