Closed KyleKing closed 3 months ago
Hello @KyleKing, I've a proposed fix in https://github.com/wimglenn/pytest-structlog/pull/33 Can you check if it is satisfactory before I tag/release? You can install that from test PyPI:
pip install --index-url=https://test.pypi.org/simple 'pytest-structlog==0.9'
I'm procrastinating configuration of the plugin until pytest upstream can detangle the config object.
Could we conditionally specify that additional processors should be kept? Or at least allow the
format_exc
processor to be configurable?Without the
format_exc
processor, the logs haveexc_info=True
, but it would be useful for debugging and testing if the full traceback could be capturedWould it be possible to have the exception populated using the logic from
structlog
()?Based on an existing test, I think this would be a minimal test case: