在 Mod_wsgi 上部署 Django 应用程序时出现 Sentry 错误

发布于 2024-11-30 10:46:19 字数 249 浏览 2 评论 0原文

当我尝试使用 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技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

享受孤独 2024-12-07 10:46:22

正在记录某些内容,但没有该记录器的处理程序。发生这种情况可能有几个不同的原因。通过 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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文