From 30ba6baf39e0ffbb7e98199c0c276e24538433ad Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Simon=20D=C3=A9saulniers?= <rostydela@gmail.com>
Date: Tue, 15 Mar 2016 17:11:44 -0400
Subject: [PATCH] benchmark: add minor logs in 'get', 'put' requests

---
 python/tools/dht/tests.py | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/python/tools/dht/tests.py b/python/tools/dht/tests.py
index 894c7c0e..b9d7d29d 100644
--- a/python/tools/dht/tests.py
+++ b/python/tools/dht/tests.py
@@ -211,7 +211,7 @@ class DhtFeatureTest(FeatureTest):
         for val in values:
             with FeatureTest.lock:
                 vstr = val.__str__()[:100]
-                DhtNetwork.log('[PUT]: %s' % vstr + ("..." if len(vstr) > 100 else ""))
+                DhtNetwork.log('[PUT]:', _hash.toString(), '->', vstr + ("..." if len(vstr) > 100 else ""))
                 FeatureTest.done += 1
                 while FeatureTest.done > 0:
                     producer.put(_hash, val, DhtFeatureTest.putDoneCb)
@@ -223,6 +223,7 @@ class DhtFeatureTest(FeatureTest):
         with FeatureTest.lock:
             FeatureTest.done += 1
             while FeatureTest.done > 0:
+                DhtNetwork.log('[GET]:', _hash.toString())
                 consumer.get(_hash, DhtFeatureTest.getcb, DhtFeatureTest.getDoneCb)
                 FeatureTest.lock.wait()
 
@@ -454,9 +455,6 @@ class PersistenceTest(DhtFeatureTest):
             for node in DhtFeatureTest.foreignNodes:
                 DhtNetwork.log(node)
 
-            #DhtNetwork.log("Waiting a minute for the network to settle down.")
-            #time.sleep(60)
-
             for _ in range(max(1, int(self._workbench.node_num/32))):
                 DhtNetwork.log('Removing all nodes hosting target values...')
                 cluster_ops_count = 0
-- 
GitLab