0

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?

1 Answer 1

0

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 WARNING or above, or

  • disables propagation for celery loggers so those startup messages are not printed.

New contributor
Mandeep is a new contributor to this site. Take care in asking for clarification, commenting, and answering. Check out our Code of Conduct.
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.