From db25eff74aef9388712b0fd4458d6329a528952c Mon Sep 17 00:00:00 2001
From: zzz <zzz@mail.i2p>
Date: Mon, 16 Mar 2015 22:38:29 +0000
Subject: [PATCH] log tweak

---
 router/java/src/net/i2p/router/JobQueue.java | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/router/java/src/net/i2p/router/JobQueue.java b/router/java/src/net/i2p/router/JobQueue.java
index f25b907fe6..bc34d6e879 100644
--- a/router/java/src/net/i2p/router/JobQueue.java
+++ b/router/java/src/net/i2p/router/JobQueue.java
@@ -216,7 +216,8 @@ public class JobQueue {
         _context.statManager().addRateData("jobQueue.readyJobs", numReady);
         if (dropped) {
             _context.statManager().addRateData("jobQueue.droppedJobs", 1);
-            _log.logAlways(Log.WARN, "Dropping job due to overload!  # ready jobs: " 
+            if (_log.shouldLog(Log.WARN))
+                _log.warn("Dropping job due to overload!  # ready jobs: " 
                           + numReady + ": job = " + job);
             String key = job.getName();
             JobStats stats = _jobStats.get(key);
-- 
GitLab