Skip to content

Commit

Permalink
Merge pull request #160 from querdenker2k/print_exception_with_trace
Browse files Browse the repository at this point in the history
print useful exception trace while InvocationTargetException
  • Loading branch information
seaside1 authored Jul 2, 2023
2 parents 65c638c + 063ad28 commit f778131
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -535,7 +535,7 @@ private void invokeRuleInternal(JRuleExecutionContext context, JRuleEvent event)
ExceptionUtils.getStackTrace(e));
} catch (InvocationTargetException e) {
JRuleLog.error(logger, context.getMethod().getName(), "Error in rule: {}",
ExceptionUtils.getStackTrace(e.getCause()));
ExceptionUtils.getStackTrace(e.getTargetException()));
} finally {
Arrays.stream(context.getLoggingTags()).forEach(MDC::remove);
MDC.remove(MDC_KEY_RULE);
Expand Down

0 comments on commit f778131

Please sign in to comment.