Commit b816389182084bd0234d8409bdd4cfef41f8e502

Authored by Jacob Vosmaer
1 parent 12d16299

Suppress 'Rendered' messages in production.log

Showing 1 changed file with 5 additions and 0 deletions   Show diff stats
config/environments/production.rb
... ... @@ -33,6 +33,11 @@ Gitlab::Application.configure do
33 33 # See everything in the log (default is :info)
34 34 # config.log_level = :debug
35 35  
  36 + # Suppress 'Rendered template ...' messages in the log
  37 + %w{render_template render_partial render_collection}.each do |event|
  38 + ActiveSupport::Notifications.unsubscribe "#{event}.action_view"
  39 + end
  40 +
36 41 # Prepend all log lines with the following tags
37 42 # config.log_tags = [ :subdomain, :uuid ]
38 43  
... ...