[tor-commits] [bridgedb/master] Condense two log calls into one in Bridges.parseExtraInfo().

isis at torproject.org isis at torproject.org
Sun Jan 12 06:06:34 UTC 2014


commit d58ab9fe0ab56bc77d27a25b4d2c87ec96010634
Author: Isis Lovecruft <isis at torproject.org>
Date:   Tue Dec 10 11:19:35 2013 +0000

    Condense two log calls into one in Bridges.parseExtraInfo().
---
 lib/bridgedb/Bridges.py |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/lib/bridgedb/Bridges.py b/lib/bridgedb/Bridges.py
index e27c287..a080331 100644
--- a/lib/bridgedb/Bridges.py
+++ b/lib/bridgedb/Bridges.py
@@ -471,8 +471,8 @@ def parseExtraInfoFile(f):
                         m = regex.match(fields[1])
                         address  = ipaddr.IPAddress(m.group(1))
                         port = int(m.group(2))
-                        logging.debug("  Parsed Transport: %s", method_name)
-                        logging.debug("  Parsed Transport Address: %s:%d", address, port)
+                        logging.debug("  Parsed Transport: %s %s:%d"
+                                      % (method_name, address, port))
                         yield ID, method_name, address, port, argdict
                     except (IndexError, ValueError, AttributeError):
                         # skip this line





More information about the tor-commits mailing list