From 89b6990cc6bbed3e6ad197782ab7d23324d3a47c Mon Sep 17 00:00:00 2001 From: Roman Zeyde Date: Thu, 30 Jan 2025 20:22:03 +0200 Subject: [PATCH] test: allow dumping protocol packets via `-vvv` [no changelog] --- tests/conftest.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/tests/conftest.py b/tests/conftest.py index bccf96eddb3..5d1a43ec4d7 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -467,9 +467,10 @@ def pytest_configure(config: "Config") -> None: for line in f: config.addinivalue_line("markers", line.strip()) - # enable debug - if config.getoption("verbose"): - log.enable_debug_output() + # enable debug if `-v` flag is passed (use multiple times for higher verbosity) + verbosity = config.getoption("verbose") + if verbosity: + log.enable_debug_output(verbosity) idval_orig = IdMaker._idval_from_value