You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sling.apache.org by GitBox <gi...@apache.org> on 2020/07/07 14:11:21 UTC
[GitHub] [sling-org-apache-sling-distribution-journal-messages] amit-jain commented on a change in pull request #3: SLING-9569: Emit error code when error event received if available
amit-jain commented on a change in pull request #3:
URL: https://github.com/apache/sling-org-apache-sling-distribution-journal-messages/pull/3#discussion_r450894712
##########
File path: src/main/java/org/apache/sling/distribution/journal/ExceptionEventSender.java
##########
@@ -46,6 +47,12 @@ private Event createErrorEvent(Exception e) {
Map<String, String> props = new HashMap<>();
props.put(KEY_TYPE, e.getClass().getName());
props.put(KEY_MESSAGE, e.getMessage());
+ if (e instanceof MessagingException) {
Review comment:
Yes thanks but would also need to override the `send` method.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org