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() {
|
Object around() : traceAnnotatedClasses() {
|
||||||
String signature = thisJoinPoint.getSignature().toShortString();
|
String signature = thisJoinPoint.getSignature().toShortString();
|
||||||
LOG.trace("Entering " + signature);
|
LOG.trace("Entering " + signature);
|
||||||
Object returnValue = proceed();
|
try {
|
||||||
LOG.trace("Exiting " + signature);
|
return proceed();
|
||||||
|
} catch (Exception e) {
|
||||||
return returnValue;
|
LOG.trace("Exception thrown from " + signature, e);
|
||||||
|
throw e;
|
||||||
|
} finally {
|
||||||
|
LOG.trace("Exiting " + signature);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user