Skip to content

chore(logging): use built-in logging.NullHandler for default logger - #566

Merged
acdha merged 1 commit into
django-haystack:masterfrom
DhavalGojiya:chore/LOG-nullhandler-update
Jun 4, 2026
Merged

chore(logging): use built-in logging.NullHandler for default logger#566
acdha merged 1 commit into
django-haystack:masterfrom
DhavalGojiya:chore/LOG-nullhandler-update

Conversation

@DhavalGojiya

@DhavalGojiya DhavalGojiya commented Apr 23, 2026

Copy link
Copy Markdown
Contributor

Description

Python already provides a built-in black hole logger logging.NullHandler, just like our universe does.
Use it instead of a custom implementation.

More: official documentation

Illustration: logging.NullHandler acts like a black hole for log messages.
blackhole

@acdha
acdha merged commit e665c45 into django-haystack:master Jun 4, 2026
13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants