Skip to content

Commit

Permalink
Remove classnames from rendered messages
Browse files Browse the repository at this point in the history
Signed-off-by: jmehrens <jason_mehrens@hotmail.com>
  • Loading branch information
jmehrens committed Nov 1, 2023
1 parent 7826818 commit 8aa788f
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -263,12 +263,9 @@ public String formatMessage(final LogRecord record) {
msg = record.getMessage();
}

msg = replaceClassName(msg, record.getThrown());

//Render any String.format patterns in the message.
final Object[] params = record.getParameters();
if (params != null && params.length != 0) {
msg = replaceClassName(msg, params);
Locale l = getLocale(record);
try {
if (l == null) { //BUG ID 6282094
Expand All @@ -278,7 +275,9 @@ public String formatMessage(final LogRecord record) {
}
} catch (RuntimeException ignore) {
}
msg = replaceClassName(msg, params);
}
msg = replaceClassName(msg, record.getThrown());
return msg;
}

Expand Down

0 comments on commit 8aa788f

Please sign in to comment.