错误消息“找不到记录器“多重处理"的处理程序"使用芹菜 [英] Error message 'No handlers could be found for logger "multiprocessing"' using Celery

查看:69
本文介绍了错误消息“找不到记录器“多重处理"的处理程序"使用芹菜的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

RabbitMQ 现在似乎可以正常工作.但是,当我尝试

RabbitMQ now seems to be working correctly. However, when I try

python -m celery.bin.celeryd --loglevel=INFO` 

(常规celeryd不起作用),出现错误

(regular celeryd doesn't work), I get the error

找不到用于记录器"multiprocessing"`的处理程序.

No handlers could be found for logger "multiprocessing"`).

这是完整的输出(略作删除):

Here's the full output (redacted slightly):

[2011-06-06 02:08:08,105: WARNING/MainProcess] -------------- celery@blahblah v2.2.6
---- **** -----
--- * ***  * -- [Configuration]
-- * - **** ---   . broker:      amqplib://blah@localhost:5672/vhost
- ** ----------   . loader:      celery.loaders.default.Loader
- ** ----------   . logfile:     [stderr]@INFO
- ** ----------   . concurrency: 2
- ** ----------   . events:      OFF
- *** --- * ---   . beat:        OFF
-- ******* ----
--- ***** ----- [Queues]
 --------------   . celery:      exchange:celery (direct) binding:celery


[Tasks]
  . tasks.add
[2011-06-06 02:08:08,812: WARNING/MainProcess] celery@blahblah has started
.
No handlers could be found for logger "multiprocessing"
No handlers could be found for logger "multiprocessing"

我真的很想正确设置此设置,因此我可以继续在Django上使用它!

I'd really like to get this set up properly, so I can move on to using it with Django!

(这不是我的第一个未找到处理程序错误,但是我在网上找不到与此有关的任何内容...)

(It is not my first no handlers found error, but I'm having trouble finding anything on the web regarding this...)

推荐答案

芹菜初始化日志记录的方式似乎有些奇怪.如果我在命令行上放置开关--logfile=yourfile.log,它可以可靠地工作,但是从配置中读取日志记录会得到不可靠的结果,包括您看到的内容.

There seems to be something strange in the way celery initializes logging. If I put the switch --logfile=yourfile.log on the command-line, it works reliably, but reading the logging from the config gives unreliable results including the stuff you're seeing.

这篇关于错误消息“找不到记录器“多重处理"的处理程序"使用芹菜的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆