[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

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



commit d15fe16cfdbcf7514e74f537f78ba55bd7229dd8
Author: Philipp Winter <phw@xxxxxxxxx>
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



_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits