do not flush non-errors to stdout because this is a concurrency issue.

the flush-call appeared very often in thread dumps with high load, so
this hopefully gives some performances
pull/1/head
Michael Peter Christen 10 years ago
parent 4e3e2acc69
commit 3cd7deb3b8

@ -138,11 +138,12 @@ public final class ConsoleOutErrHandler extends Handler {
}
if (record.getLevel().intValue() >= this.splitLevel.intValue()) {
this.stdOutHandler.publish(record);
this.stdOutHandler.flush();
this.stdErrHandler.publish(record);
this.stdErrHandler.flush();
} else {
this.stdOutHandler.publish(record);
this.stdOutHandler.flush();
}
}

Loading…
Cancel
Save