Skip to content

Commit 63c9be8

Browse files
committed
add missing condition in ActionDispatch::DebugExceptions#log_error
1 parent c368ffa commit 63c9be8

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lib/rails_semantic_logger/extensions/action_dispatch/debug_exceptions.rb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,9 @@ class DebugExceptions
66
private
77

88
undef_method :log_error
9-
def log_error(_request, wrapper)
9+
def log_error(request, wrapper)
10+
return if !log_rescued_responses?(request) && wrapper.rescue_response?
11+
1012
ActiveSupport::Deprecation.silence do
1113
ActionController::Base.logger.fatal(wrapper.exception)
1214
end

0 commit comments

Comments
 (0)