From 17d57ba04a7655a4e02f4feaf0934c58bfbed515 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Adrien=20B=C3=A9raud?= <adrien.beraud@savoirfairelinux.com>
Date: Wed, 18 May 2016 01:23:47 -0400
Subject: [PATCH] dht: remove anoying log

---
 src/dht.cpp | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/dht.cpp b/src/dht.cpp
index 513f3b53..28eb07f9 100644
--- a/src/dht.cpp
+++ b/src/dht.cpp
@@ -731,10 +731,10 @@ Dht::searchStep(std::shared_ptr<Search> sr)
      * TODO: Emprical analysis over refill timeout.
      */
     if (sr->refill_time + Node::NODE_EXPIRE_TIME < now and sr->nodes.size()-sr->getNumberOfBadNodes() < SEARCH_NODES) {
-        auto added = sr->refill(sr->af == AF_INET ? buckets : buckets6, now);
-        if (added)
+        if (auto added = sr->refill(sr->af == AF_INET ? buckets : buckets6, now)) {
             sr->refill_time = now;
-        DHT_LOG.WARN("[search %s IPv%c] refilled with %u nodes", sr->id.toString().c_str(), (sr->af == AF_INET) ? '4' : '6', added);
+            DHT_LOG.DEBUG("[search %s IPv%c] refilled with %u nodes", sr->id.toString().c_str(), (sr->af == AF_INET) ? '4' : '6', added);
+        }
     }
 
     /* Check if the first TARGET_NODES (8) live nodes have replied. */
-- 
GitLab