Skip to content

Commit

Permalink
Update TestnavLogbackEncoder.java
Browse files Browse the repository at this point in the history
Fix for ident formatMessage
  • Loading branch information
stigus authored Nov 25, 2024
1 parent a96c532 commit fb48421
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ private void appendStackTraceCauses(ThrowableProxy exception, StringWriter write

private String formatMessage(String message) {
message = identNummer.matcher(message).replaceAll(match -> {
if (match.group().charAt(2) == '0' || match.group().charAt(2) == '1') {
if (match.group().charAt(2) < '4') {
return match.group().substring(0, 6) + "xxxxx";
}
return match.group();
Expand All @@ -124,4 +124,4 @@ private String formatMessage(String message) {

return message;
}
}
}

0 comments on commit fb48421

Please sign in to comment.