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

[tor-commits] [bridgedb/develop] Add debug message.



commit 4302c6792b07ae1fef4886ec9765d13425864037
Author: Philipp Winter <phw@xxxxxxxxx>
Date:   Wed Jun 26 10:49:45 2019 -0700

    Add debug message.
    
    This helps with debugging <https://bugs.torproject.org/30441>.
---
 bridgedb/Bridges.py | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/bridgedb/Bridges.py b/bridgedb/Bridges.py
index 3b1e5b5..3c94fdf 100644
--- a/bridgedb/Bridges.py
+++ b/bridgedb/Bridges.py
@@ -344,6 +344,8 @@ class BridgeRing(object):
             bridges = [self.bridges[k] for k in keys]
 
         bridges = bridges[:N]
+        logging.debug("Caller asked for N=%d, filterBySubnet=%s bridges.  "
+                      "Returning %d bridges." % (N, filterBySubnet, len(bridges)))
 
         return bridges
 



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