Browse Source

catch 住异常,防止这一块死循环

feature/x
Harrison 2 years ago
parent
commit
0989763254
  1. 11
      designer-base/src/main/java/com/fr/env/detect/thowable/ThrowableLogAppender.java

11
designer-base/src/main/java/com/fr/env/detect/thowable/ThrowableLogAppender.java vendored

@ -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) {
}
}

Loading…
Cancel
Save