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

[tor-commits] [bridgedb/master] Use bridges.ip in log message in BridgeRing.insert().



commit c953078252c14019cf08172eb7cdd3bc479f44e0
Author: Isis Lovecruft <isis@xxxxxxxxxxxxxx>
Date:   Sun Jan 12 03:03:38 2014 +0000

    Use bridges.ip in log message in BridgeRing.insert().
    
     * REMOVE the comment and other cruft around it.
---
 lib/bridgedb/Bridges.py |    5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

diff --git a/lib/bridgedb/Bridges.py b/lib/bridgedb/Bridges.py
index dd0a7a9..416c1df 100644
--- a/lib/bridgedb/Bridges.py
+++ b/lib/bridgedb/Bridges.py
@@ -783,10 +783,7 @@ class BridgeRing(BridgeHolder):
             self.isSorted = False
         self.bridges[pos] = bridge
         self.bridgesByID[ident] = bridge
-        #XXX: just use bridge.ip
-        if isinstance(bridge.ip, ipaddr.IPv6Address): ip = "[%s]" % bridge.ip
-        else: ip = bridge.ip
-        logging.debug("Adding %s to %s", ip, self.name)
+        logging.debug("Adding %s to %s" % (bridge.ip, self.name))
 
     def _sort(self):
         """Helper: put the keys in sorted order."""



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