Skip to content

Commit

Permalink
Logging instead of swallowing exceptions.
Browse files Browse the repository at this point in the history
  • Loading branch information
shroman committed Dec 14, 2016
1 parent bd69f93 commit 91f7978
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -760,6 +760,7 @@ public void executeSendMessageHookBefore(final SendMessageContext context) {
try {
hook.sendMessageBefore(context);
} catch (Throwable e) {
log.warn("failed to executeSendMessageHookBefore", e);
}
}
}
Expand All @@ -771,6 +772,7 @@ public void executeSendMessageHookAfter(final SendMessageContext context) {
try {
hook.sendMessageAfter(context);
} catch (Throwable e) {
log.warn("failed to executeSendMessageHookAfter", e);
}
}
}
Expand Down

0 comments on commit 91f7978

Please sign in to comment.