BAEL-4844: Adding support for tracing exceptional occurrences.
This commit is contained in:
parent
f73a249836
commit
883e612d45
|
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue