Closed egberts closed 2 months ago
Found it.... My introduction of pelican/pelican/tests/conftest.py
caused the logger to have dual-personality (despite no logging import statement inside conftest.py
): as a result, the logger.getLevel()
produces two different values between Pelican __init__.py
and log.py
.
Very interesting....
Issue
In my egberts/pelican at master-egbert branch, latest everything, in the test_log is all of a sudden now failing the
LimitFilter
portion oftest_log.py
.Despite the
test_log
properly inserting theLimitFilter
(and unchanged for the last 4 years, @avaris ), yet our Pelican lone solitarytest_log.py
unit test is now failing.Something have gotten changed (might be me and my massive PR smash-together).
pytest
logging.addFilter
works and properly added:Pelican's
log.LimitFilter._ignore
has the correct value:But the
_ignore
field seems to be ignored.Platform
OS version and name: Linux 6.1.0-21-amd64 SMP PREEMPT_DYNAMIC Debian 6.1.90-1 (2024-05-03) x86_64 GNU/Linux
Python version: 3.11.2
Pelican version:
master-egbert
branch in github.com/egberts/pelicanLink to theme: custom m.css
Links to plugins: None
Link to your site: N/A
Link to your source: https://github.com/egberts/pelican/tree/master-egbert
Link to a Gist with the contents of your settings file: none (
DEFAULT_CONFIG
)