Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJacob Vosmaer <contact@jacobvosmaer.nl>2014-03-24 12:52:50 +0400
committerJacob Vosmaer <contact@jacobvosmaer.nl>2014-03-24 12:56:26 +0400
commitb816389182084bd0234d8409bdd4cfef41f8e502 (patch)
tree53d9d1832592c17b54f05a8831f1b01398abc4e0 /config/environments
parent12d162993e6198df2ce62bf53e6b8182ca783fd5 (diff)
Suppress 'Rendered' messages in production.log
Diffstat (limited to 'config/environments')
-rw-r--r--config/environments/production.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/config/environments/production.rb b/config/environments/production.rb
index 9ac4622abc2..87c5efd2142 100644
--- a/config/environments/production.rb
+++ b/config/environments/production.rb
@@ -33,6 +33,11 @@ Gitlab::Application.configure do
# See everything in the log (default is :info)
# config.log_level = :debug
+ # Suppress 'Rendered template ...' messages in the log
+ %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
# config.log_tags = [ :subdomain, :uuid ]