4
我已經成功通過config/environments/test.rb
如何在Rails 4中禁用所有CLI測試日誌?
設置config.active_record.logger = nil
我仍然然而得到以下輸出禁用ActiveRecord
相關日誌:
Processing by Admin::WebsitesController#edit as HTML
Parameters: {"id"=>"226"}
Rendered admin/websites/_form.html.erb (6.8ms)
Rendered admin/websites/edit.html.erb within layouts/application (7.2ms)
Completed 200 OK in 36ms (Views: 33.5ms | ActiveRecord: 0.0ms)
我試過下面的選項,但他們沒有幫助:
ActiveRecord::Base.logger = nil
config.action_controller.logger = nil
config.action_view.logger = nil
我在想什麼?