提供 apache 错误日志以进行调试

发布于 2024-10-05 04:36:49 字数 305 浏览 0 评论 0原文

我已经设置了一个服务器,只要它更改为实时 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

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

评论(1

撧情箌佬 2024-10-12 04:36:49

您可以使用 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.

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