Commit 2b088b9f authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets

Merge branch 'no_render_log' into 'master'

Suppress 'Rendered...' log messages
parents 12d16299 7862201d
...@@ -33,6 +33,12 @@ Gitlab::Application.configure do ...@@ -33,6 +33,12 @@ Gitlab::Application.configure do
# See everything in the log (default is :info) # See everything in the log (default is :info)
# config.log_level = :debug # config.log_level = :debug
# Suppress 'Rendered template ...' messages in the log
# source: http://stackoverflow.com/a/16369363
%w{render_template render_partial render_collection}.each do |event|
ActiveSupport::Notifications.unsubscribe "#{event}.action_view"
end
# Prepend all log lines with the following tags # Prepend all log lines with the following tags
# config.log_tags = [ :subdomain, :uuid ] # config.log_tags = [ :subdomain, :uuid ]
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment