BAEL-4844: Adding support for tracing exceptional occurrences.

This commit is contained in:
bhandy
2021-04-21 07:20:25 -04:00
parent b528193972
commit 9ac44f6344

View File

@@ -11,9 +11,13 @@ public aspect TracingAspect {
Object around() : traceAnnotatedClasses() {
String signature = thisJoinPoint.getSignature().toShortString();
LOG.trace("Entering " + signature);
Object returnValue = proceed();
LOG.trace("Exiting " + signature);
return returnValue;
try {
return proceed();
} catch (Exception e) {
LOG.trace("Exception thrown from " + signature, e);
throw e;
} finally {
LOG.trace("Exiting " + signature);
}
}
}