From b7004f6051ac9f0c4da2e057440df40d19bccb00 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Simon=20D=C3=A9saulniers?= <sim.desaulniers@gmail.com>
Date: Mon, 4 Apr 2016 18:31:05 -0400
Subject: [PATCH] benchmark: add option for getting bootstrap log

---
 python/tools/benchmark.py | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/python/tools/benchmark.py b/python/tools/benchmark.py
index 0d20a93a..257eddba 100755
--- a/python/tools/benchmark.py
+++ b/python/tools/benchmark.py
@@ -148,6 +148,7 @@ if __name__ == '__main__':
     ifConfArgs.add_argument('-no6', '--disable-ipv6', action="store_true", help='Enable IPv6')
 
     testArgs = parser.add_argument_group('Test arguments')
+    testArgs.add_argument('--bs-dht-log', action='store_true', default=False, help='Enables dht log in bootstrap.')
     testArgs.add_argument('-t', '--test', type=str, default=None, required=True, help='Specifies the test.')
     testArgs.add_argument('-o', '--opt', type=str, default=[], nargs='+',
             help='Options passed to tests routines.')
@@ -174,6 +175,9 @@ if __name__ == '__main__':
     wb.create_virtual_net()
 
     bootstrap = wb.get_bootstrap()
+    if args.bs_dht_log:
+        bootstrap.enableLogging()
+
     bootstrap.resize(1)
     print("Launching", wb.node_num, "nodes (", wb.clusters, "clusters of", wb.node_per_loc, "nodes)")
 
-- 
GitLab