put logs in the console buffer even if we're not sending anything to the console (since this console buffer is shown as the /logs.jsp)

This commit is contained in:
jrandom
2004-09-01 07:17:24 +00:00
committed by zzz
parent 5f3fcd2f37
commit 2ff7efadc2

View File

@ -99,9 +99,9 @@ class LogWriter implements Runnable {
String val = LogRecordFormatter.formatRecord(_manager, rec); String val = LogRecordFormatter.formatRecord(_manager, rec);
writeRecord(val); writeRecord(val);
if (_manager.getDisplayOnScreenLevel() <= rec.getPriority()) {
// we always add to the console buffer, but only sometimes write to stdout // we always add to the console buffer, but only sometimes write to stdout
_manager.getBuffer().add(val); _manager.getBuffer().add(val);
if (_manager.getDisplayOnScreenLevel() <= rec.getPriority()) {
if (_manager.displayOnScreen()) { if (_manager.displayOnScreen()) {
System.out.print(val); System.out.print(val);
} }