Skip to content

Commit

Permalink
[fix] #127 add replaceAll in DiscordAppender to avoid invalid Json error
Browse files Browse the repository at this point in the history
  • Loading branch information
tkdwns414 committed Sep 4, 2024
1 parent 69e06eb commit dafddb3
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ protected void append(ILoggingEvent eventObject) {
IThrowableProxy throwable = eventObject.getThrowableProxy();

if (throwable != null) {
exceptionBrief = throwable.getClassName() + ": " + throwable.getMessage();
exceptionBrief = throwable.getClassName() + ": " + throwable.getMessage().replaceAll("\"", "'");
}

if (exceptionBrief.equals("")) {
Expand Down

0 comments on commit dafddb3

Please sign in to comment.