Skip to content

Commit

Permalink
Merge pull request quarkusio#22794 from geoand/jboss-threads-log
Browse files Browse the repository at this point in the history
Get rid of useless JBoss Threads version in build logs
  • Loading branch information
geoand authored Jan 11, 2022
2 parents 11870d7 + cdf6f17 commit d31c534
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,9 @@ protected void doLogf(final Level level, final String loggerClassName, final Str
} catch (Exception e) {
text = invalidFormat(format, parameters);
}
doActualLog(log, level, text, thrown);
if (!text.startsWith("JBoss Threads version")) {
doActualLog(log, level, text, thrown);
}
}
}

Expand Down
6 changes: 4 additions & 2 deletions devtools/maven/src/main/java/io/quarkus/maven/MojoLogger.java
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,10 @@ protected void doLogf(final Level level, final String loggerClassName, final Str
text = invalidFormat(format, parameters);
}
}
synchronized (MojoLogger.class) {
doActualLog(log, level, text, thrown);
if (!text.startsWith("JBoss Threads version")) {
synchronized (MojoLogger.class) {
doActualLog(log, level, text, thrown);
}
}
}
}
Expand Down

0 comments on commit d31c534

Please sign in to comment.