提供 apache 错误日志以进行调试
我已经设置了一个服务器,只要它更改为实时 apache 托管的 wsgi 子域,就会自动部署存储库的主干。这非常有效,除非出现服务器错误,因为团队无法调试它,因为 apache 会弹出通用的 500 错误页面。
要进行调试,需要 ssh 到服务器并跟踪 /var/log/apache2/error 文件,这对于只想修复拼写错误的开发人员来说是一个很大的障碍。
我如何发布(通过 IP 或 .htaccess 限制访问)日志文件,以便团队可以轻松检查他们在 apache 中损坏的内容?
谢谢!
I've setup a server to automatically deploy the trunk of our repository whenever it changes to a live apache-hosted wsgi subdomain. This works great except when there is a server error, because the team can't debug it because apache slaps a generic 500 error page up.
To debug, it is necessary to ssh in to the server and tail the /var/log/apache2/error file, which is quite a barrier for a developer who just wants to fix a typo.
How can I publish (with access restricted by IP or .htaccess) the log files so that the team can easily check what they have broken in apache?
Thanks!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可以使用 django 错误报告功能。看看 http://docs.djangoproject.com/en/dev/ howto/error-reporting/
希望有帮助。
You can use django error reporting feature. Have a look at http://docs.djangoproject.com/en/dev/howto/error-reporting/
Hope it helps.