[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-commits] [chutney/master] On chutney verify failure, inform user about debug mode
commit 39d47297ae2a827dce95d3c6e5b41bb0b396098c
Author: teor <teor2345@xxxxxxxxx>
Date: Fri Apr 24 00:16:09 2015 +1000
On chutney verify failure, inform user about debug mode
When chutney verify fails, tell the user how to activate debug mode
by editing the source code.
Eventually, we'll make debug mode an argument, see #15418.
---
lib/chutney/TorNet.py | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/lib/chutney/TorNet.py b/lib/chutney/TorNet.py
index 439aa10..99dc297 100644
--- a/lib/chutney/TorNet.py
+++ b/lib/chutney/TorNet.py
@@ -899,6 +899,10 @@ class Network(object):
print("Verifying data transmission:")
status = self._verify_traffic()
print("Transmission: %s" % ("Success" if status else "Failure"))
+ if not status:
+ # TODO: allow the debug flag to be passed as an argument to
+ # src/test/test-network.sh and chutney
+ print("Set 'debug_flag = True' in Traffic.py to diagnose.")
return status
def _verify_traffic(self):
_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits