Skip to content

Commit

Permalink
devonfw#754: small fixes/improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
hohwille committed Nov 19, 2024
1 parent 7e12b5d commit cef6712
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -131,8 +131,8 @@ public boolean isColored() {
@Override
public String log(Throwable error, String message, Object... args) {

this.count++;
if (!this.enabled) {
this.count++;
// performance optimization: do not fill in arguments if disabled
return message;
}
Expand All @@ -148,10 +148,11 @@ public String log(Throwable error, String message, Object... args) {
}
boolean accept = this.listener.onLog(this.level, actualMessage, message, args, error);
if (accept) {
this.count++;
// actualMessage = this.exceptionDetails.format(actualMessage, error);
doLog(actualMessage, error);
}
return message;
return actualMessage;
}

/**
Expand Down

0 comments on commit cef6712

Please sign in to comment.