Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
当我尝试使用 Apache2 和 mod_wsgi 部署我的 django 1.3 应用程序时出现以下错误:
No handlers could be found for logger "sentry.errors"
从 Django 开始,一切似乎都配置得很好。当我运行 ./manage.py runserver 时,我可以很好地运行它,但是当我尝试通过 mod_wsgi 运行它时,它会出错。
谢谢!
正在记录某些内容,但该记录器没有处理程序。发生这种情况可能有几个不同的原因。通过 manage.py 运行时可能不会记录该消息(也许 DEBUG 设置不同),或者在使用 mod_wsgi 运行时未在日志消息之前导入设置处理程序的代码。要解决此问题,请查看初始化日志处理程序的代码,并确定它何时执行。