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

[tor-commits] [bridgedb/develop] Decrease insane ammounts of logging for adding proxies to ProxySet.



commit 5d8f47943c78f87821d6102a72fe321a3fce8b39
Author: Isis Lovecruft <isis@xxxxxxxxxxxxxx>
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



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