mirror of
https://github.com/django-q2/django-q2.git
synced 2026-09-26 00:38:13 +08:00
Instead of checking if the django-q logger has any handlers directly, use the hasHandlers [1] method, which will check if any parent loggers have handlers as well. This fixes a bug where django-q configures it's own logging even though the root logger has a handler set 1. https://docs.python.org/3/library/logging.html#logging.Logger.hasHandlers Co-authored-by: Wesley Ellis <wellis@benchsci.com>
8.1 KiB
8.1 KiB