Commit 7862201de9e3e8229e33a28d17fb2edb691eead0
1 parent
b8163891
Exists in
spb-stable
and in
3 other branches
Add source for 'Rendered' message suppression
Showing
1 changed file
with
1 additions
and
0 deletions
Show diff stats
config/environments/production.rb
| @@ -34,6 +34,7 @@ Gitlab::Application.configure do | @@ -34,6 +34,7 @@ Gitlab::Application.configure do | ||
| 34 | # config.log_level = :debug | 34 | # config.log_level = :debug |
| 35 | 35 | ||
| 36 | # Suppress 'Rendered template ...' messages in the log | 36 | # Suppress 'Rendered template ...' messages in the log |
| 37 | + # source: http://stackoverflow.com/a/16369363 | ||
| 37 | %w{render_template render_partial render_collection}.each do |event| | 38 | %w{render_template render_partial render_collection}.each do |event| |
| 38 | ActiveSupport::Notifications.unsubscribe "#{event}.action_view" | 39 | ActiveSupport::Notifications.unsubscribe "#{event}.action_view" |
| 39 | end | 40 | end |