[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-commits] [bridgedb/master] Add more logging to BridgeSplitter distributor placement.
commit be732f4a7461a0a1a41ee90b4ed86d6ac6534baf
Author: Isis Lovecruft <isis@xxxxxxxxxxxxxx>
Date: Wed Dec 24 09:10:02 2014 +0000
Add more logging to BridgeSplitter distributor placement.
---
lib/bridgedb/Bridges.py | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/lib/bridgedb/Bridges.py b/lib/bridgedb/Bridges.py
index 43edc3d..b6c51d4 100644
--- a/lib/bridgedb/Bridges.py
+++ b/lib/bridgedb/Bridges.py
@@ -685,6 +685,8 @@ class BridgeSplitter(BridgeHolder):
pos = bisect.bisect_right(self.pValues, n) - 1
assert 0 <= pos < len(self.rings)
ringname = self.rings[pos]
+ logging.info("%s placing bridge %s into hashring %s (via n=%s, pos=%s)."
+ % (self.__class__.__name__, bridge, ringname, n, pos))
validRings = self.rings + self.pseudoRings
@@ -829,6 +831,9 @@ class FilteredBridgeSplitter(BridgeHolder):
# I suppose since it contains memory addresses, it *is* technically
# likely to be a unique string, but it is messy.
+ logging.debug("Adding '%s' subring to %s..."
+ % (ringname, self.__class__.__name__))
+
if not isinstance(subring, BridgeHolder):
logging.fatal("%s hashring can't add invalid subring: %r"
% (self.distributorName, subring))
_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits