From ac902badcd0516bc76de81729fb6c3bc7bce4d41 Mon Sep 17 00:00:00 2001
From: zzz <zzz@mail.i2p>
Date: Sat, 28 Mar 2015 10:47:10 +0000
Subject: [PATCH] log tweak to hide i2pd badness

---
 router/java/src/net/i2p/router/tunnel/pool/BuildHandler.java | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/router/java/src/net/i2p/router/tunnel/pool/BuildHandler.java b/router/java/src/net/i2p/router/tunnel/pool/BuildHandler.java
index 7fdd248020..13bffe7eeb 100644
--- a/router/java/src/net/i2p/router/tunnel/pool/BuildHandler.java
+++ b/router/java/src/net/i2p/router/tunnel/pool/BuildHandler.java
@@ -661,8 +661,10 @@ class BuildHandler implements Runnable {
             // Previous and next hop the same? Don't help somebody be evil. Drop it without a reply.
             // A-B-C-A is not preventable
             if (nextPeer.equals(from)) {
+                // i2pd does this
                 _context.statManager().addRateData("tunnel.rejectHostile", 1);
-                _log.error("Dropping build request with the same previous and next hop");
+                if (_log.shouldLog(Log.WARN))
+                    _log.warn("Dropping build request with the same previous and next hop");
                 return;
             }
         }
-- 
GitLab