如何在Amber Framework中查看在生产中调试的500个错误?

时间:2019-02-04 23:43:38

标签: heroku logging crystal-lang amber-framework

我遵循了琥珀色框架指南,以启动并运行一个简单的应用程序。在本地运行正常。

但是在prod heroku上,我只是HTTP 500错误,并且在config/application.cr中设置了

settings.logging.severity = "debug"

主页工作正常,欢迎使用Amber Framework!消息。

但是当我击中终点时,我会看到:

2019-02-04T23:42:01.223860+00:00 heroku[router]: at=info method=GET path="/api/v1/games" host=gamedrop-api.herokuapp.com request_id=08991879-897c-4aaf-bec0-fe5f0ce2285a fwd="75.33.221.151" dyno=web.1 connect=0ms service=233ms status=500 bytes=91461 protocol=http
2019-02-04T23:42:01.361031+00:00 heroku[router]: at=info method=GET path="/client-reload" host=gamedrop-api.herokuapp.com request_id=ff573e6d-84b3-4b17-9fc7-6ed0602d3e2f fwd="75.33.221.151" dyno=web.1 connect=0ms service=11488ms status=101 bytes=129 protocol=http
2019-02-04T23:42:03.221075+00:00 heroku[router]: at=info method=GET path="/api/v1/games" host=gamedrop-api.herokuapp.com request_id=f50151b0-2eca-46a5-a739-12247164abe4 fwd="75.33.221.151" dyno=web.1 connect=0ms service=11ms status=500 bytes=91461 protocol=http
2019-02-04T23:42:03.214144+00:00 app[web.1]: 11:42:03 Error: 500 | (ERROR)
2019-02-04T23:42:03.328016+00:00 heroku[router]: at=info method=GET path="/favicon.ico" host=gamedrop-api.herokuapp.com request_id=c598686c-ab75-494e-aadc-9eb003b63d95 fwd="75.33.221.151" dyno=web.1 connect=0ms service=3ms status=200 bytes=15266 protocol=http
2019-02-04T23:42:05.424545+00:00 heroku[router]: at=info method=GET path="/favicon.ico" host=gamedrop-api.herokuapp.com request_id=15cb9ed8-1ed4-442e-afb7-d0cefb7db332 fwd="75.33.221.151" dyno=web.1 connect=0ms service=1ms status=200 bytes=15266 protocol=http
2019-02-04T23:42:05.325568+00:00 heroku[router]: at=info method=GET path="/api/v1/games" host=gamedrop-api.herokuapp.com request_id=b3f5b695-2425-4b8b-92d5-2d3097e83a96 fwd="75.33.221.151" dyno=web.1 connect=0ms service=12ms status=500 bytes=91461 protocol=http
2019-02-04T23:42:05.317633+00:00 app[web.1]: 11:42:05 Error: 500 | (ERROR)

起初我以为是数据库网址错误,但是我设法正确地运行了迁移。

这时我只想查看与500相关的更多信息。我该怎么做?

0 个答案:

没有答案