Commit 2b088b9f83b31fbb864d49520a6b752601e09a9a

Authored by Dmitriy Zaporozhets
2 parents 12d16299 7862201d

Merge branch 'no_render_log' into 'master'

Suppress 'Rendered...' log messages
Showing 1 changed file with 6 additions and 0 deletions   Show diff stats
config/environments/production.rb
... ... @@ -33,6 +33,12 @@ 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 + # source: http://stackoverflow.com/a/16369363
  38 + %w{render_template render_partial render_collection}.each do |event|
  39 + ActiveSupport::Notifications.unsubscribe "#{event}.action_view"
  40 + end
  41 +
36 42 # Prepend all log lines with the following tags
37 43 # config.log_tags = [ :subdomain, :uuid ]
38 44  
... ...