From 64a459055a590b177bd7fdd40484e362aec3acd2 Mon Sep 17 00:00:00 2001 From: Mike Date: Wed, 6 Apr 2022 06:04:18 +1200 Subject: [PATCH] Should now work with caplog.at_level and caplog.set_level Add handler at TRACE level --- src/pytest_loguru/plugin.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pytest_loguru/plugin.py b/src/pytest_loguru/plugin.py index 97f98d6..3ea4882 100644 --- a/src/pytest_loguru/plugin.py +++ b/src/pytest_loguru/plugin.py @@ -20,7 +20,7 @@ def filter_(record): return record["level"].no >= caplog.handler.level handler_id = logger.add( - caplog.handler, level="TRACE", format="{message}", filter=filter_ + caplog.handler, level=0, format="{message}", filter=filter_ ) yield caplog logger.remove(handler_id)