From 05577ccf15478322e5b0392004b3c224634b2dd2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Oliver=20G=C3=BCnther?= Date: Mon, 23 Jun 2025 11:23:11 +0200 Subject: [PATCH] Only suppress integrations, not rails logging --- .../timeout/suppress_internal_error_report_on_timeout.rb | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/rack/timeout/suppress_internal_error_report_on_timeout.rb b/lib/rack/timeout/suppress_internal_error_report_on_timeout.rb index 558859117b1..33ad0d9a937 100644 --- a/lib/rack/timeout/suppress_internal_error_report_on_timeout.rb +++ b/lib/rack/timeout/suppress_internal_error_report_on_timeout.rb @@ -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