diff --git a/mitmproxy/addons/next_layer.py b/mitmproxy/addons/next_layer.py index 3e51f3211..6d158745f 100644 --- a/mitmproxy/addons/next_layer.py +++ b/mitmproxy/addons/next_layer.py @@ -109,8 +109,8 @@ class NextLayer: nextlayer.data_server(), ) except NeedsMoreData: - logger.info( - f"Deferring layer decision, not enough data: {nextlayer.data_client().hex()}" + logger.debug( + f"Deferring layer decision, not enough data: {nextlayer.data_client().hex()!r}" ) def _next_layer( diff --git a/test/mitmproxy/addons/test_next_layer.py b/test/mitmproxy/addons/test_next_layer.py index f2be4d3a0..10dfa3b6b 100644 --- a/test/mitmproxy/addons/test_next_layer.py +++ b/test/mitmproxy/addons/test_next_layer.py @@ -404,7 +404,7 @@ class TestNextLayer: assert nl._next_layer(m.context, http_get, b"").flow is not None def test_next_layer(self, monkeypatch, caplog): - caplog.set_level(logging.INFO) + caplog.set_level(logging.DEBUG) nl = NextLayer() with taddons.context(nl) as tctx: