[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-commits] [bridgedb/master] Keep a counter on total bridges inserted into a hashring.
commit 068ac5bbe640e98b800ff2a09eb82117f34cb650
Author: Isis Lovecruft <isis@xxxxxxxxxxxxxx>
Date: Fri Nov 15 13:49:02 2013 +0000
Keep a counter on total bridges inserted into a hashring.
---
lib/bridgedb/Bridges.py | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/lib/bridgedb/Bridges.py b/lib/bridgedb/Bridges.py
index 7e24dbe..a11cd48 100644
--- a/lib/bridgedb/Bridges.py
+++ b/lib/bridgedb/Bridges.py
@@ -1074,9 +1074,13 @@ class FilteredBridgeSplitter(BridgeHolder):
if populate_from:
logging.info("Populating hashring %s..." % ringname)
+ inserted = 0
for bridge in populate_from:
if isinstance(bridge, Bridge) and filterFn(bridge):
subring.insert(bridge)
+ inserted += 1
+ logging.info("Inserted %d bridges into hashring %s!"
+ % (inserted, ringname))
def dumpAssignments(self, f, description=""):
# one ring per filter set
_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits