[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-commits] [ooni-probe/master] Also print out the Tor version and print error messages.
commit c701575ed1a13e5848c93d12c38141a76fb54592
Author: Arturo Filastò <art@xxxxxxxxx>
Date: Fri Mar 28 01:39:28 2014 +0100
Also print out the Tor version and print error messages.
---
ooni/nettests/blocking/bridge_reachability.py | 3 +++
1 file changed, 3 insertions(+)
diff --git a/ooni/nettests/blocking/bridge_reachability.py b/ooni/nettests/blocking/bridge_reachability.py
index 5a12a1f..c191804 100644
--- a/ooni/nettests/blocking/bridge_reachability.py
+++ b/ooni/nettests/blocking/bridge_reachability.py
@@ -103,6 +103,7 @@ class BridgeReachability(nettest.NetTestCase):
config = txtorcon.TorConfig()
config.ControlPort = random.randint(2**14, 2**16)
config.SocksPort = random.randint(2**14, 2**16)
+ log.msg("Connecting to %s with tor %s" % (self.bridge, onion.tor_details['version']))
transport_name = onion.transport_name(self.bridge)
if transport_name and self.pyobfsproxy_bin:
@@ -119,10 +120,12 @@ class BridgeReachability(nettest.NetTestCase):
if transport_name and transport_name == 'scramblesuit' and \
onion.TorVersion('0.2.5.1') > onion.tor_details['version']:
self.report['error'] = 'unsupported-tor-version'
+ log.err("Unsupported Tor version.")
return
elif transport_name and \
onion.TorVersion('0.2.4.1') > onion.tor_details['version']:
self.report['error'] = 'unsupported-tor-version'
+ log.err("Unsupported Tor version.")
return
config.Bridge = self.bridge
_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits