Skip to content

Commit

Permalink
Should now work with caplog.at_level and caplog.set_level
Browse files Browse the repository at this point in the history
Add handler at TRACE level
  • Loading branch information
Mike committed Apr 5, 2022
1 parent 2f199ac commit 64a4590
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pytest_loguru/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

0 comments on commit 64a4590

Please sign in to comment.