Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Set Celery worker logging level

Tags:

In version 4.1.0 of Celery, there was a --loglevel flag which set the log level of the Celery worker.

This worked for things like celery -A myapp worker --loglevel INFO.

But, as of version 5.0.2, this flag has been removed from the documentation.

As of right now, if I Google "Celery worker set log level" I get links to the Celery source code, and to this SO question which assumes its existence.

So how do you set the log level of a Celery worker now?

like image 770
LondonRob Avatar asked Dec 10 '20 15:12

LondonRob


1 Answers

Although this is no longer in the documentation, --loglevel is still a valid parameter to worker in Celery 5.0.2.

celery --app my_app worker --loglevel INFO
like image 50
LondonRob Avatar answered Sep 30 '22 15:09

LondonRob