[tor-commits] [bridgedb/develop] Print each log line from get-tor-exits to it's own line in our log.

isis at torproject.org isis at torproject.org
Thu Apr 16 05:19:44 UTC 2015


commit 63bd41f58ca2e4fe4b008fcba12739590e3c3b2c
Author: Isis Lovecruft <isis at torproject.org>
Date:   Thu Apr 2 05:08:38 2015 +0000

    Print each log line from get-tor-exits to it's own line in our log.
---
 lib/bridgedb/proxy.py |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/lib/bridgedb/proxy.py b/lib/bridgedb/proxy.py
index 7fab5af..086f3bd 100644
--- a/lib/bridgedb/proxy.py
+++ b/lib/bridgedb/proxy.py
@@ -406,7 +406,8 @@ class ExitListProtocol(protocol.ProcessProtocol):
     def errReceived(self, data):
         """Some data was received from stderr."""
         # The get-exit-list script uses twisted.python.log to log to stderr:
-        logging.debug(data)  # pragma: no cover
+        for line in data.splitlines():  # pragma: no cover
+            logging.debug(line)
 
     def outReceived(self, data):
         """Some data was received from stdout."""





More information about the tor-commits mailing list