【发布时间】:2013-06-17 00:29:48
【问题描述】:
我正在运行一个 Rails 4.0.0.rc 应用程序,使用 New Relic 进行可用性/异常监控。我用这个 sn-p 修改了application.rb 以启用动态异常页面:
config.exceptions_app = self.routes
但是,我不再在 New Relic 中看到 404、422 或 500 异常。知道如何找回它们吗?
编辑:
注意:这是控制器处理状态的样子:
class ErrorsController < ApplicationController
# GET /404
def missing
render status: 404
end
# GET /422
def unprocessable
render status: 422
end
# GET /500
def exception
render status: 500
end
end
【问题讨论】: