Skip to content

Commit

Permalink
Fix Naming/RescuedExceptionsVariableName
Browse files Browse the repository at this point in the history
  • Loading branch information
barrucadu committed Jul 20, 2020
1 parent cd4b29d commit 6c562ce
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@ def self.should_monkey_patch_log_error?(clazz = ::ActionDispatch::DebugException
end

should_monkey_patch
rescue StandardError => ex
rescue StandardError => e
Rails.logger.warn "Failed to detect whether to monkey patch " \
"::ActionDispatch::DebugExceptions#log_error - #{ex.inspect}"
"::ActionDispatch::DebugExceptions#log_error - #{e.inspect}"
false
end

Expand Down

0 comments on commit 6c562ce

Please sign in to comment.