5
3
mirror of https://github.com/tildeverse/lobsters synced 2024-06-23 08:47:05 +00:00

disable some excessive logging in production

namely "Rendered ..." lines, which are quite numerous on pages with
lots of comments
This commit is contained in:
joshua stein 2017-03-24 16:20:16 -05:00
parent 522b894dd9
commit 0df724fdb8

View File

@ -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