[tor-commits] [bridgedb/master] Remove commented out logs, add warning log, in bridgedb.Main.

isis at torproject.org isis at torproject.org
Sun Jan 12 06:06:31 UTC 2014


commit 5cf66a12797897015672eb9b475641832660f00b
Author: Isis Lovecruft <isis at torproject.org>
Date:   Tue Nov 5 08:35:22 2013 +0000

    Remove commented out logs, add warning log, in bridgedb.Main.
    
     * REMOVE cruft code for a bunch of log statements which used str.join()
       incorrectly and have been commented out forever anyway.
     * ADD warning log message if no HTTPS distributor was created.
---
 lib/bridgedb/Main.py |   10 ++--------
 1 file changed, 2 insertions(+), 8 deletions(-)

diff --git a/lib/bridgedb/Main.py b/lib/bridgedb/Main.py
index 3c5aa0c..2ab1f5a 100644
--- a/lib/bridgedb/Main.py
+++ b/lib/bridgedb/Main.py
@@ -409,14 +409,8 @@ def startup(cfg, options):
                          % len(ipDistributor.splitter))
             for (n,(f,r)) in ipDistributor.splitter.filterRings.items():
                 logging.info("\tby filter set %s, %d" % (n, len(r)))
-            #logging.info("  by location set: %s",
-            #             " ".join(str(len(r)) for r in ipDistributor.rings))
-            #logging.info("  by category set: %s",
-            #             " ".join(str(len(r)) for r in ipDistributor.categoryRings))
-            #logging.info("Here are all known bridges in the category section:")
-            #for r in ipDistributor.categoryRings:
-            #    for name, b in r.bridges.items():
-            #        logging.info("%s" % b.getConfigLine(True))
+        else:
+            logging.warn("No HTTP(S) distributor created!")
 
         # Dump bridge pool assignments to disk.
         try:





More information about the tor-commits mailing list