From ea97f629752bfef9dec6dbb407e381b5b9d41d6d Mon Sep 17 00:00:00 2001 From: Thomas Kriechbaumer Date: Mon, 21 Nov 2016 23:04:47 +0100 Subject: [PATCH] websocket: show messages in the eventlog --- mitmproxy/proxy/protocol/websocket.py | 1 + 1 file changed, 1 insertion(+) diff --git a/mitmproxy/proxy/protocol/websocket.py b/mitmproxy/proxy/protocol/websocket.py index 69eb898f6..45bc5a202 100644 --- a/mitmproxy/proxy/protocol/websocket.py +++ b/mitmproxy/proxy/protocol/websocket.py @@ -76,6 +76,7 @@ class WebSocketLayer(base.Layer): websocket_message = t(self.flow, not is_server, payload) self.flow.messages.append(websocket_message) + self.log("WebSocket message: {}".format(websocket_message.info), "info") self.channel.ask("websocket_message", self.flow) # chunk payload into multiple 10kB frames, and send them