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:
@ -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);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user