Skip to content

Commit

Permalink
SimpleAppender omits stacktraces (fixes #696) (#700)
Browse files Browse the repository at this point in the history
gnodet authored Oct 3, 2022
1 parent a8e72a1 commit 8c9d167
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -16,9 +16,9 @@
package org.mvndaemon.mvnd.logging.internal;

import ch.qos.logback.classic.Level;
import ch.qos.logback.classic.pattern.ThrowableProxyConverter;
import ch.qos.logback.classic.spi.ILoggingEvent;
import ch.qos.logback.classic.spi.IThrowableProxy;
import ch.qos.logback.classic.spi.ThrowableProxyUtil;
import ch.qos.logback.core.AppenderBase;
import ch.qos.logback.core.CoreConstants;

@@ -42,7 +42,7 @@ protected void append(ILoggingEvent eventObject) {
IThrowableProxy tp = eventObject.getThrowableProxy();
if (tp != null) {
buf.append(CoreConstants.LINE_SEPARATOR);
buf.append(new ThrowableProxyConverter().convert(eventObject));
buf.append(ThrowableProxyUtil.asString(tp));
}
System.out.print(buf.toString());
}

0 comments on commit 8c9d167

Please sign in to comment.