Skip to content

Commit

Permalink
Log error when direct message listener fails
Browse files Browse the repository at this point in the history
If `Error` is encountered while invoking direct message listener,
then error should be logged before default handler terminates JVM.
  • Loading branch information
arnis authored and artembilan committed Feb 1, 2021
1 parent dc6b74e commit ba4ef38
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1129,6 +1129,7 @@ private void callExecuteListener(Object data, long deliveryTag) { // NOSONAR (co
}
}
catch (Error e) { // NOSONAR
this.logger.error("Failed to invoke listener", e);
getJavaLangErrorHandler().handle(e);
throw e;
}
Expand Down

0 comments on commit ba4ef38

Please sign in to comment.