简体   繁体   English

禁用Celery ForkPoolWorker日志

[英]disable Celery ForkPoolWorker logs

I'm new in Celery . 我是芹菜的新手。 I want to disable worker logs on Celery Screen. 我想在芹菜屏幕上禁用工作日志。 So, I run celery like this. 所以,我像这样经营芹菜。

在此处输入图片说明

But after I send task Celery Server... 但是在我发送任务Celery Server之后...

在此处输入图片说明

Still output worker logs 仍输出工作日志

I tried get_task_logger but not working 我尝试了get_task_logger但无法正常工作

You can at least limit the log level to FATAL : 您至少可以将日志级别限制为FATAL

 celery -A tasks worker --loglevel=FATAL

If you don't want to see the logs you can also send the output of the process somewhere else: 如果您不想看到日志,也可以将流程的输出发送到其他地方:

celery -A tasks worker --loglevel=FATAL &>/dev/null

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM