Skip to content

Commit

Permalink
fixed test logging
Browse files Browse the repository at this point in the history
  • Loading branch information
hohwille committed Apr 9, 2024
1 parent cb696c2 commit e153acf
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,18 +35,19 @@ public IdeSlf4jLogger(IdeLogLevel level) {
@Override
public String log(Throwable error, String message, Object... args) {

String msg = message;
if ((this.level == IdeLogLevel.STEP) || (this.level == IdeLogLevel.INTERACTION)
|| (this.level == IdeLogLevel.SUCCESS)) {
message = this.level.name() + ":" + message;
msg = this.level.name() + ":" + message;
}
LoggingEventBuilder builder = LOG.atLevel(this.logLevel);
if (error != null) {
builder.setCause(error);
}
if (args == null) {
builder.log(message);
builder.log(msg);
} else {
builder.log(message, args);
builder.log(msg, args);
}
if (message == null) {
if (error == null) {
Expand Down

0 comments on commit e153acf

Please sign in to comment.