From ecc8f283cfc1b002b5141c527a827e74b770f2f0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rafael=20Mendon=C3=A7a=20Fran=C3=A7a?= Date: Wed, 17 Feb 2016 01:18:51 -0200 Subject: Fix code style This change was added in #23203 and it was not conforming our code style. --- actionpack/lib/action_dispatch/middleware/debug_exceptions.rb | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'actionpack/lib') 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 -- cgit v1.2.3