Skip to content

Commit

Permalink
#149 logging to normal
Browse files Browse the repository at this point in the history
  • Loading branch information
Yegor Bugayenko committed Nov 5, 2015
1 parent 259759c commit a6d2021
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/com/jcabi/aspects/aj/MethodLogger.java
Original file line number Diff line number Diff line change
Expand Up @@ -192,9 +192,9 @@ private Object wrap(final ProceedingJoinPoint point, final Method method,
final MethodLogger.Marker marker =
new MethodLogger.Marker(point, annotation);
this.running.add(marker);
int level = annotation.value();
try {
final Object logger = this.logger(method, annotation.name());
int level = annotation.value();
if (annotation.prepend()) {
LogHelper.log(
level,
Expand Down Expand Up @@ -228,7 +228,7 @@ private Object wrap(final ProceedingJoinPoint point, final Method method,
&& !ex.getClass().isAnnotationPresent(Loggable.Quiet.class)) {
final StackTraceElement trace = ex.getStackTrace()[0];
LogHelper.log(
Loggable.ERROR,
level,
method.getDeclaringClass(),
Logger.format(
"%s: thrown %s out of %s#%s[%d] in %[nano]s",
Expand Down

0 comments on commit a6d2021

Please sign in to comment.