Skip to content

Commit

Permalink
add missing condition in ActionDispatch::DebugExceptions#log_error
Browse files Browse the repository at this point in the history
  • Loading branch information
tycooon committed Feb 10, 2023
1 parent c368ffa commit 63c9be8
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@ class DebugExceptions
private

undef_method :log_error
def log_error(_request, wrapper)
def log_error(request, wrapper)
return if !log_rescued_responses?(request) && wrapper.rescue_response?

ActiveSupport::Deprecation.silence do
ActionController::Base.logger.fatal(wrapper.exception)
end
Expand Down

0 comments on commit 63c9be8

Please sign in to comment.