[tor-commits] [bridgedb/master] Decrease insane ammounts of logging for adding proxies to ProxySet.
isis at torproject.org
isis at torproject.org
Fri May 1 07:10:58 UTC 2015
commit 5d8f47943c78f87821d6102a72fe321a3fce8b39
Author: Isis Lovecruft <isis at torproject.org>
Date: Thu Apr 2 05:07:58 2015 +0000
Decrease insane ammounts of logging for adding proxies to ProxySet.
---
lib/bridgedb/proxy.py | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/lib/bridgedb/proxy.py b/lib/bridgedb/proxy.py
index 3940ed6..7fab5af 100644
--- a/lib/bridgedb/proxy.py
+++ b/lib/bridgedb/proxy.py
@@ -92,7 +92,6 @@ def loadProxiesFromFile(filename, proxySet=None, removeStale=False):
if isinstance(proxySet, ProxySet):
# ProxySet.add() will validate the IP address
if proxySet.add(line, tag=filename):
- logging.info("Added %s to the proxy list." % line)
addresses.append(line)
else:
ip = isIPAddress(line)
@@ -170,7 +169,7 @@ class ProxySet(MutableSet):
ip = isIPAddress(ip)
if ip:
if self._proxies.isdisjoint(set(ip)):
- logging.debug("Adding %s to proxy list %r..." % (ip, self))
+ logging.debug("Adding %s to proxy list..." % ip)
self._proxies.add(ip)
self._proxydict[ip] = tag if tag else time.time()
return True
More information about the tor-commits
mailing list