Skip to content

Instantly share code, notes, and snippets.

@vmihailenco
Created January 10, 2012 18:54
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vmihailenco/1590507 to your computer and use it in GitHub Desktop.
Save vmihailenco/1590507 to your computer and use it in GitHub Desktop.
Disable celery logging magic
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)
@synthego-software
Copy link

Perfect, still works with Celery 3.1

@rvteja92
Copy link

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