[tor-commits] [ooni-probe/master] Introduce some extra debug messages in bridget
art at torproject.org
art at torproject.org
Thu Feb 23 05:59:49 UTC 2012
commit e324fd8bb7403fee05ce6772d54d16f4d2a4c927
Author: Arturo Filastò <hellais at gmail.com>
Date: Wed Feb 22 22:00:02 2012 -0800
Introduce some extra debug messages in bridget
---
refactor/tests/bridget.py | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/refactor/tests/bridget.py b/refactor/tests/bridget.py
index 1e18175..830faaf 100644
--- a/refactor/tests/bridget.py
+++ b/refactor/tests/bridget.py
@@ -140,6 +140,8 @@ ControlPort %s
cmd = ["tor", "-f", torrc]
tupdate = time.time()
+ debugupdate = time.time()
+
try:
p = Popen(cmd, stdout=PIPE)
except:
@@ -154,6 +156,8 @@ ControlPort %s
self.logger.info("Testing bridge: %s" % bridge)
while True:
+ if (time.time() - debugupdate) > 40:
+ self.logger.debug("ANTANI: %s %s" % (bridge, o))
o = ""
try:
o = p.stdout.read(4096)
More information about the tor-commits
mailing list