How to prevent Rails from Action View logging in production

前端 未结 2 1966
情话喂你
情话喂你 2021-01-03 04:27

In rails 3.2.0,is it possible to turn off rails logging for rendering of views in ActionView:: LogSubscriber in production environment.

Currently only way i found to

2条回答
  •  粉色の甜心
    2021-01-03 04:55

    You can directly turn off action_view logger.

    Rails.application.configure do
      config.action_view.logger = nil
    end
    

提交回复
热议问题