在 Mod_wsgi 上部署 Django 应用程序时出现 Sentry 错误
当我尝试使用 Apache2 和 mod_wsgi 部署 django 1.3 应用程序时,出现以下错误:
No handlers could be found for logger "sentry.errors"
Django 端的一切似乎都配置良好。当我运行 ./manage.py runserver 时,我可以正常运行它,但是当我尝试通过 mod_wsgi 运行它时,它会出现错误。
谢谢!
I'm getting the following error when I try to deploy my django 1.3 app with Apache2 and mod_wsgi:
No handlers could be found for logger "sentry.errors"
Everything seems to be configured fine from Django's end. I can run it fine when I run ./manage.py runserver but when I try to run it through mod_wsgi it gives errors.
Thanks!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
![扫码二维码加入Web技术交流群](/public/img/jiaqun_03.jpg)
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
正在记录某些内容,但没有该记录器的处理程序。发生这种情况可能有几个不同的原因。通过 manage.py 运行时可能不会记录该消息(可能 DEBUG 设置不同),或者在使用 mod_wsgi 运行时,设置处理程序的代码不会在日志消息之前导入。要解决此问题,请查看初始化日志处理程序的代码,并确定其执行时间。
Something is being logged, but there is no handler for that logger. This could be happening for a couple of different reasons. The message might not be logged when running via manage.py (perhaps DEBUG setting is different), or the code that sets up your handler is not being imported prior to the log message when running with mod_wsgi. To fix the problem, take a look at the code that initializes your log handler, and determine when it is executed.