如何使 Django 1.2 中的 hoptoad 将错误记录到日志文件并发送 Airbrake 通知?
我们使用 django 1.2.7 和 hoptoad 日志记录中间件 (hoptoad.middleware.HoptoadNotifierMiddleware)。
当发生错误时,错误消息会发送到airbrake,但似乎不会记录到django日志文件中。看来是被hoptoad专门拦截了。
有谁知道如何将错误记录到磁盘上的本地 django 日志文件中?我在 hoptoad 文档中找不到任何此类选项。
hoptoad 中间件类是否需要进行自定义修改?
We're using django 1.2.7 and the hoptoad logging middleware (hoptoad.middleware.HoptoadNotifierMiddleware).
When an error occurs, the error message gets sent to airbrake, but it does not seem to get logged to the django log file. It seems like it's intercepted by hoptoad exclusively.
Does anyone know how to also get the errors logged to the local django log file on disk? I couldn't find any such option in the hoptoad documentation.
Is there a custom modification needed to the hoptoad middleware class?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论