Created
January 10, 2012 18:54
-
-
Save vmihailenco/1590507 to your computer and use it in GitHub Desktop.
Disable celery logging magic
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CELERYD_HIJACK_ROOT_LOGGER = False | |
def setup_task_logger(logger=None, **kwargs): | |
logger.propagate = 1 | |
from celery import signals | |
signals.setup_logging.connect(lambda **kwargs: True) | |
signals.after_setup_task_logger.connect(setup_task_logger) |
Where should I place this for my Django app? Please help.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Perfect, still works with Celery 3.1