[tor-commits] [ooni-probe/master] log the actual failure if Tor fails to start

art at torproject.org art at torproject.org
Fri Sep 22 18:41:07 UTC 2017


commit c5dbca0bdc3e4185ca91e9507c1245b36f22c988
Author: meejah <meejah at meejah.ca>
Date:   Wed Apr 26 14:18:35 2017 -0600

    log the actual failure if Tor fails to start
---
 ooni/utils/onion.py | 1 +
 1 file changed, 1 insertion(+)

diff --git a/ooni/utils/onion.py b/ooni/utils/onion.py
index 691eda05..c4d5d4c3 100644
--- a/ooni/utils/onion.py
+++ b/ooni/utils/onion.py
@@ -337,6 +337,7 @@ class TorLauncherWithRetries(object):
         self.started.callback(state)
 
     def _setup_failed(self, failure):
+        log.msg("Starting Tor failed: {}".format(failure.value))
         self.tor_output.seek(0)
         map(log.debug, self.tor_output.readlines())
         self.tor_output.seek(0)





More information about the tor-commits mailing list