improve next layer log message (#7337)

This commit is contained in:
Maximilian Hils 2024-11-23 02:42:06 +00:00 committed by GitHub
parent 2d68a5246a
commit 03bf350924
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 3 additions and 3 deletions

View File

@ -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(

View File

@ -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: