From 2ff7efadc2cf85b3a912aa339be1d6bd39b12b51 Mon Sep 17 00:00:00 2001
From: jrandom <jrandom>
Date: Wed, 1 Sep 2004 07:17:24 +0000
Subject: [PATCH] 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)

---
 core/java/src/net/i2p/util/LogWriter.java | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/core/java/src/net/i2p/util/LogWriter.java b/core/java/src/net/i2p/util/LogWriter.java
index 72ab45f178..5cb5a703aa 100644
--- a/core/java/src/net/i2p/util/LogWriter.java
+++ b/core/java/src/net/i2p/util/LogWriter.java
@@ -99,9 +99,9 @@ class LogWriter implements Runnable {
         String val = LogRecordFormatter.formatRecord(_manager, rec);
         writeRecord(val);
 
+        // we always add to the console buffer, but only sometimes write to stdout
+        _manager.getBuffer().add(val);
         if (_manager.getDisplayOnScreenLevel() <= rec.getPriority()) {
-            // we always add to the console buffer, but only sometimes write to stdout
-            _manager.getBuffer().add(val);
             if (_manager.displayOnScreen()) {
                 System.out.print(val);
             }
-- 
GitLab