aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack
diff options
context:
space:
mode:
authorMatthew Draper <matthew@trebex.net>2016-02-04 01:59:29 +1030
committerMatthew Draper <matthew@trebex.net>2016-02-04 01:59:29 +1030
commit8a84f1c047ebb59dec7a7ece9355da9c7b0ae6b7 (patch)
treef279036c5204d4c435d6bee635ae61d80b7cc2e5 /actionpack
parent2144c75cf2c5d3296c8935f913cd8fa4e160457b (diff)
parent7ca7c0ef289595d79ed1a59af9873f4fcc29918e (diff)
downloadrails-8a84f1c047ebb59dec7a7ece9355da9c7b0ae6b7.tar.gz
rails-8a84f1c047ebb59dec7a7ece9355da9c7b0ae6b7.tar.bz2
rails-8a84f1c047ebb59dec7a7ece9355da9c7b0ae6b7.zip
Merge pull request #23443 from prathamesh-sonpatki/fix-logging-in-development
Put some space for non-assets requests in development mode
Diffstat (limited to 'actionpack')
-rw-r--r--actionpack/lib/action_controller/log_subscriber.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/actionpack/lib/action_controller/log_subscriber.rb b/actionpack/lib/action_controller/log_subscriber.rb
index 4c9f14e409..d1d6acac26 100644
--- a/actionpack/lib/action_controller/log_subscriber.rb
+++ b/actionpack/lib/action_controller/log_subscriber.rb
@@ -26,6 +26,8 @@ module ActionController
end
message = "Completed #{status} #{Rack::Utils::HTTP_STATUS_CODES[status]} in #{event.duration.round}ms"
message << " (#{additions.join(" | ".freeze)})" unless additions.blank?
+ message << "\n\n" if Rails.env.development?
+
message
end
end