我正在开发一个具有WP主页的rails应用程序,以及一些正在从WP加载的图像。在本地主机上我们没有进入,导致其在日志中很多路由的错误,例如,在WP内容:在资产日志中隐藏ActionController :: RoutingError
Started GET "/wp-content/uploads/2014/03/facebook-icon1.png" for 127.0.0.1 at 2015-11-20 15:10:48 +0200
ActionController::RoutingError (No route matches [GET] "/wp-content/uploads/2014/03/facebook-icon1.png"):
actionpack (4.2.5) lib/action_dispatch/middleware/debug_exceptions.rb:21:in `call'
actionpack (4.2.5) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call'
考虑,我们有我们最终不得不为每5个路由错误页面上的5张请求。 如何从dev环境中的日志中隐藏这些类型的错误?
试试这个:'config.assets.logger = nil' –
@PardeepDhingra不工作 – rmagnum2002