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

[tor-commits] [bridgedb/develop] Remove use of logSafely() for area in getBridgesForIP().



commit 5261334d1be22c56d653db85715904b77ce60f49
Author: Isis Lovecruft <isis@xxxxxxxxxxxxxx>
Date:   Mon Mar 30 01:28:53 2015 +0000

    Remove use of logSafely() for area in getBridgesForIP().
    
    IP address log sanitisation happens automatically now, so we don't need
    to use logSafely().
---
 lib/bridgedb/Dist.py |    3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/lib/bridgedb/Dist.py b/lib/bridgedb/Dist.py
index c2a8620..9f730c0 100644
--- a/lib/bridgedb/Dist.py
+++ b/lib/bridgedb/Dist.py
@@ -273,8 +273,7 @@ class IPBasedDistributor(Distributor):
                       % ' '.join([x.func_name for x in bridgeFilterRules]))
 
         area = self.areaMapper(ip)
-        logging.debug("IP mapped to area:\t%s"
-                      % logSafely("{0}.0/24".format(area)))
+        logging.debug("IP mapped to area:\t%s.0 /24" % area)
 
         key1 = ''
         pos = 0



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