[tor-commits] [bridgedb/master] Use bridges.ip in log message in BridgeRing.insert().
isis at torproject.org
isis at torproject.org
Sun Jan 12 06:06:36 UTC 2014
commit c953078252c14019cf08172eb7cdd3bc479f44e0
Author: Isis Lovecruft <isis at torproject.org>
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."""
More information about the tor-commits
mailing list