From 7c17c6ddbe12707795ea99b4f35df23cad576899 Mon Sep 17 00:00:00 2001 From: Maximilian Hils Date: Sun, 14 Feb 2016 14:18:31 +0100 Subject: [PATCH] print http2 frames to debug log --- libmproxy/protocol/http2.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/libmproxy/protocol/http2.py b/libmproxy/protocol/http2.py index 04ff8bf66..a65f76596 100644 --- a/libmproxy/protocol/http2.py +++ b/libmproxy/protocol/http2.py @@ -131,6 +131,12 @@ class Http2Layer(Layer): raise NotImplementedError() def _handle_event(self, event, source_conn, other_conn, is_server): + self.log( + "HTTP2 Event from {}".format("server" if is_server else "client"), + "debug", + [repr(event)] + ) + if hasattr(event, 'stream_id'): if is_server and event.stream_id % 2 == 1: eid = self.server_to_client_stream_ids[event.stream_id]