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?
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With