diff options
author | Maximilian Hils <git@maximilianhils.com> | 2014-03-13 01:04:45 +0100 |
---|---|---|
committer | Maximilian Hils <git@maximilianhils.com> | 2014-03-13 01:04:45 +0100 |
commit | 4d9799f1037b46fe610b875bd2dd8aacb8966ec9 (patch) | |
tree | 1962efe758a496fcc924b1a7eb2eb599496c4d65 /libmproxy/protocol/tcp.py | |
parent | 7e86744226cc881507bc6c6931316b6b73ed03ec (diff) | |
download | mitmproxy-4d9799f1037b46fe610b875bd2dd8aacb8966ec9.tar.gz mitmproxy-4d9799f1037b46fe610b875bd2dd8aacb8966ec9.tar.bz2 mitmproxy-4d9799f1037b46fe610b875bd2dd8aacb8966ec9.zip |
add support for log levels
Diffstat (limited to 'libmproxy/protocol/tcp.py')
-rw-r--r-- | libmproxy/protocol/tcp.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libmproxy/protocol/tcp.py b/libmproxy/protocol/tcp.py index 3a247858..6cdc6581 100644 --- a/libmproxy/protocol/tcp.py +++ b/libmproxy/protocol/tcp.py @@ -45,7 +45,7 @@ class TCPHandler(ProtocolHandler): data = data.getvalue() if data == "": # no data received, rfile is closed - self.c.log("Close writing connection to %s" % dst_str) + self.c.log("Close writing connection to %s" % dst_str, "debug") conns.remove(rfile) if dst.ssl_established: dst.connection.shutdown() @@ -55,6 +55,6 @@ class TCPHandler(ProtocolHandler): self.c.close = True break - self.c.log("%s %s\r\n%s" % (direction, dst_str,data)) + self.c.log("%s %s\r\n%s" % (direction, dst_str, data), "debug") dst.wfile.write(data) dst.wfile.flush() |