Skip to content

Commit

Permalink
Arc - improve transactional OM error logging to include more informat…
Browse files Browse the repository at this point in the history
…ion by default
  • Loading branch information
manovotn committed Nov 23, 2022
1 parent de814ab commit d9bb2d0
Showing 1 changed file with 7 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -473,8 +473,13 @@ public void run() {
} catch (Exception e) {
// swallow exception and log errors for every problematic OM
LOG.errorf(
"Failure occurred while notifying a transational %s for event of type %s \n- please enable debug logging to see the full stack trace",
observerMethod, eventContext.getMetadata().getType().getTypeName());
"Failure occurred while notifying a transational %s for event of type %s " +
"\n- please enable debug logging to see the full stack trace" +
"\n %s",
observerMethod, eventContext.getMetadata().getType().getTypeName(),
e.getCause() != null && e.getMessage() != null
? "Cause: " + e.getCause() + " Message: " + e.getMessage()
: "Exception caught: " + e);
LOG.debugf(e, "Failure occurred while notifying a transational %s for event of type %s",
observerMethod, eventContext.getMetadata().getType().getTypeName());
}
Expand Down

0 comments on commit d9bb2d0

Please sign in to comment.