[Pkg-privacy-commits] [obfsproxy] 193/353: Don't log raw network data since it bloats up log files and messes with terminals.

Ximin Luo infinity0 at moszumanska.debian.org
Sat Aug 22 13:01:58 UTC 2015


This is an automated email from the git hooks/post-receive script.

infinity0 pushed a commit to branch master
in repository obfsproxy.

commit 5be824934d4f05fe71403d70f15f7450be5a4350
Author: Philipp Winter <phw at torproject.org>
Date:   Mon Sep 23 00:23:09 2013 +0200

    Don't log raw network data since it bloats up log files and messes with
    terminals.
---
 obfsproxy/network/socks.py | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/obfsproxy/network/socks.py b/obfsproxy/network/socks.py
index 344bf16..3857b73 100644
--- a/obfsproxy/network/socks.py
+++ b/obfsproxy/network/socks.py
@@ -47,8 +47,7 @@ class MySOCKSv4Outgoing(socks.SOCKSv4Outgoing, network.GenericProtocol):
         return super(MySOCKSv4Outgoing, self).__init__(socksProtocol)
 
     def dataReceived(self, data):
-        log.debug("%s: Received %d bytes:\n%s" \
-                  % (self.name, len(data), str(data)))
+        log.debug("%s: Received %d bytes." % (self.name, len(data)))
 
         # If the circuit was not set up, set it up now.
         if not self.circuit.circuitIsReady():
@@ -103,8 +102,7 @@ class SOCKSv4Protocol(socks.SOCKSv4, network.GenericProtocol):
             log.debug("%s: Received SOCKS handshake data." % self.name)
             return socks.SOCKSv4.dataReceived(self, data)
 
-        log.debug("%s: Received %d bytes:\n%s" \
-                  % (self.name, len(data), str(data)))
+        log.debug("%s: Received %d bytes." % (self.name, len(data)))
         self.buffer.write(data)
 
         """

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-privacy/packages/obfsproxy.git



More information about the Pkg-privacy-commits mailing list