From 92e8507d5e22618f3eba898866da737638e97b5d Mon Sep 17 00:00:00 2001 From: Carl Chenet Date: Fri, 19 May 2017 14:09:16 +0200 Subject: [PATCH] disable some excessive logging in production --- config/environments/production.rb | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/config/environments/production.rb b/config/environments/production.rb index a301912..102dc15 100644 --- a/config/environments/production.rb +++ b/config/environments/production.rb @@ -76,3 +76,7 @@ Lobsters::Application.configure do # Do not dump schema after migrations. config.active_record.dump_schema_after_migration = false end + +%w{render_template render_partial render_collection}.each do |event| + ActiveSupport::Notifications.unsubscribe "#{event}.action_view" +end