summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhilipp Winter <phw@nymity.ch>2019-05-08 10:01:20 -0700
committerPhilipp Winter <phw@nymity.ch>2019-05-08 10:01:20 -0700
commitd15fe16cfdbcf7514e74f537f78ba55bd7229dd8 (patch)
tree863aa43df21d5df5334a2ba38940c22ff04f65c5
parent191a190e61f5cb9ad1b86d8c3c207d2d9adf7ef1 (diff)
Enhance log message.
This will hopefully help us understand <https://bugs.torproject.org/30441>.
-rw-r--r--bridgedb/main.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/bridgedb/main.py b/bridgedb/main.py
index 586ed83..a707952 100644
--- a/bridgedb/main.py
+++ b/bridgedb/main.py
@@ -178,7 +178,10 @@ def load(state, hashring, clear=False):
blacklist = parseBridgeBlacklistFile(state.NO_DISTRIBUTION_FILE)
inserted = 0
- logging.info("Inserting %d bridges into hashring..." % len(bridges))
+ logging.info("Inserting %d bridges into hashring, %d of which have the "
+ "'Running' flag..." % (len(bridges),
+ len(filter(lambda b: b.flags.running, bridges.values()))))
+
for fingerprint, bridge in bridges.items():
# Skip insertion of bridges which are geolocated to be in one of the
# NO_DISTRIBUTION_COUNTRIES, a.k.a. the countries we don't distribute