aboutsummaryrefslogtreecommitdiffstats
path: root/libmproxy/protocol
diff options
context:
space:
mode:
Diffstat (limited to 'libmproxy/protocol')
-rw-r--r--libmproxy/protocol/http.py2
-rw-r--r--libmproxy/protocol/tcp.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/libmproxy/protocol/http.py b/libmproxy/protocol/http.py
index 038fde97..971455f7 100644
--- a/libmproxy/protocol/http.py
+++ b/libmproxy/protocol/http.py
@@ -1068,7 +1068,7 @@ class HTTPHandler(ProtocolHandler):
message += " The client does not trust the proxy's certificate."
if isinstance(error, tcp.NetLibDisconnect):
- self.c.log("TCP connection closed unexpectedly.", "debug", [repr(error)])
+ self.c.log("TCP connection closed unexpectedly.", "debug")
else:
self.c.log("error: %s" % message, level="info")
diff --git a/libmproxy/protocol/tcp.py b/libmproxy/protocol/tcp.py
index 8411ba6c..57a48ab9 100644
--- a/libmproxy/protocol/tcp.py
+++ b/libmproxy/protocol/tcp.py
@@ -66,5 +66,5 @@ class TCPHandler(ProtocolHandler):
# self.c.log("%s %s\r\n%s" % (direction, dst_str, cleanBin(buf.tobytes())), "debug")
dst.connection.send(buf[:size])
except socket.error as e:
- self.c.log("TCP connection closed unexpectedly.", "debug", [repr(e)])
+ self.c.log("TCP connection closed unexpectedly.", "debug")
return \ No newline at end of file