Properly set console logging in test suite

agpl
Tyler Goodlet 2021-12-02 08:12:02 -05:00
parent 92c6ec1882
commit e51c0e17a2
1 changed files with 1 additions and 0 deletions

View File

@ -75,6 +75,7 @@ def pytest_configure(config):
def loglevel(request): def loglevel(request):
orig = tractor.log._default_loglevel orig = tractor.log._default_loglevel
level = tractor.log._default_loglevel = request.config.option.loglevel level = tractor.log._default_loglevel = request.config.option.loglevel
tractor.log.get_console_log(level)
yield level yield level
tractor.log._default_loglevel = orig tractor.log._default_loglevel = orig