[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

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



commit d58ab9fe0ab56bc77d27a25b4d2c87ec96010634
Author: Isis Lovecruft <isis@xxxxxxxxxxxxxx>
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



_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits