Only suppress integrations, not rails logging

This commit is contained in:
Oliver Günther
2025-06-23 11:23:11 +02:00
parent 20a9a79fda
commit 05577ccf15
@@ -2,7 +2,10 @@ module Rack
class Timeout
module SuppressInternalErrorReportOnTimeout
def op_handle_error(message_or_exception, context = {})
return if respond_to?(:request) && request.env[Rack::Timeout::ENV_INFO_KEY].try(:state) == :timed_out
if respond_to?(:request) && request.env[Rack::Timeout::ENV_INFO_KEY].try(:state) == :timed_out
Rails.logger.error "Rack::Timeout: Receiving timeout exception: #{message_or_exception}"
return
end
super
end