Commit ac303d1e authored by Kirill Smelkov's avatar Kirill Smelkov

X wcfs: tests: -v -> show only wcfs.py logs verbosely

This is what we are interested in the first place.
For full details -vv will show *.py logs verbosely.
parent a126e709
......@@ -52,7 +52,13 @@ def pytest_configure(config):
if config.option.capture == "no":
config.inicfg['log_cli'] = "true"
assert config.getini("log_cli") is True
if config.option.verbose:
# -v -> verbose wcfs.py logs
if config.option.verbose > 0:
import logging
wcfslog = logging.getLogger('wcfs')
wcfslog.setLevel(logging.INFO)
# -vv -> verbose *.py logs
if config.option.verbose > 1:
config.inicfg['log_cli_level'] = "INFO"
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment