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

isis at torproject.org isis at torproject.org
Fri May 1 07:10:57 UTC 2015


commit 5261334d1be22c56d653db85715904b77ce60f49
Author: Isis Lovecruft <isis at torproject.org>
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





More information about the tor-commits mailing list