[tor-commits] [bridgedb/master] Enhance log message.

phw at torproject.org phw at torproject.org
Wed May 8 19:38:40 UTC 2019


commit d15fe16cfdbcf7514e74f537f78ba55bd7229dd8
Author: Philipp Winter <phw at nymity.ch>
Date:   Wed May 8 10:01:20 2019 -0700

    Enhance log message.
    
    This will hopefully help us understand
    <https://bugs.torproject.org/30441>.
---
 bridgedb/main.py | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

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



More information about the tor-commits mailing list