|
|
|
@ -33,11 +33,14 @@ public class ThrowableLogAppender extends AbstractAppender {
|
|
|
|
|
@Override |
|
|
|
|
public void append(LogEvent logEvent) { |
|
|
|
|
|
|
|
|
|
if (logEvent.getLevel() == Level.ERROR) { |
|
|
|
|
Throwable thrown = logEvent.getThrown(); |
|
|
|
|
if (thrown != null) { |
|
|
|
|
ThrowableStore.getInstance().add(thrown); |
|
|
|
|
try { |
|
|
|
|
if (logEvent.getLevel() == Level.ERROR) { |
|
|
|
|
Throwable thrown = logEvent.getThrown(); |
|
|
|
|
if (thrown != null) { |
|
|
|
|
ThrowableStore.getInstance().add(thrown); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} catch (Throwable ignore) { |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|