How to disable Celery startup logs?
I'm getting a bunch of logs like this:
[2025-11-29 16:13:15,731]
def group(self, tasks, result, group_id, partial_args, add_to_parent=0):
return 1
[2025-11-29 16:13:15,732]
def xmap(task, it):
return 1
[2025-11-29 16:13:15,732]
def backend_cleanup():
return 1
I don't need these logs. It's useless spam to me.
How do I disable this?
Those log lines come from Celery’s startup logging; they show some built‑in tasks (group, xmap, backend_cleanup) being registered and are safe to hide.stackoverflow+1
How to hide them
If you just want Celery to shut up, start your worker with a higher log level, for example:
celery -A your_project worker -l WARNING
Or in celery.py / settings, set:
worker_hijack_root_logger = False
And then configure your own logging (so you don’t log at INFO for Celery’s root logger). celeryq+1
If you’re using Django and django-celery, make sure your Django logging config either:
sets Celery loggers to
WARNINGor above, ordisables propagation for
celeryloggers so those startup messages are not printed.