diff options
author | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2016-02-17 01:18:51 -0200 |
---|---|---|
committer | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2016-02-17 01:19:16 -0200 |
commit | ecc8f283cfc1b002b5141c527a827e74b770f2f0 (patch) | |
tree | 0aa9dee57652ac66d1b00141b1cc7fc0696d2ff5 /actionpack/lib | |
parent | 94dbc48887bf39c241ee2ce1741ee680d773f202 (diff) | |
download | rails-ecc8f283cfc1b002b5141c527a827e74b770f2f0.tar.gz rails-ecc8f283cfc1b002b5141c527a827e74b770f2f0.tar.bz2 rails-ecc8f283cfc1b002b5141c527a827e74b770f2f0.zip |
Fix code style
This change was added in #23203 and it was not conforming our code style.
Diffstat (limited to 'actionpack/lib')
-rw-r--r-- | actionpack/lib/action_dispatch/middleware/debug_exceptions.rb | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/actionpack/lib/action_dispatch/middleware/debug_exceptions.rb b/actionpack/lib/action_dispatch/middleware/debug_exceptions.rb index daaaed8df5..51a471fb23 100644 --- a/actionpack/lib/action_dispatch/middleware/debug_exceptions.rb +++ b/actionpack/lib/action_dispatch/middleware/debug_exceptions.rb @@ -149,6 +149,7 @@ module ActionDispatch def log_error(request, wrapper) logger = logger(request) return unless logger + exception = wrapper.exception trace = wrapper.application_trace @@ -163,11 +164,11 @@ module ActionDispatch end end - def log_array logger, array - array.map { |line| logger.fatal line} + def log_array(logger, array) + array.map { |line| logger.fatal line } end - def logger request + def logger(request) request.logger || ActionView::Base.logger || stderr_logger end |