diff options
Diffstat (limited to 'config/initializers/rack_timeout.rb')
-rw-r--r-- | config/initializers/rack_timeout.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/config/initializers/rack_timeout.rb b/config/initializers/rack_timeout.rb index c2f2f3e093c..27077f4f0f6 100644 --- a/config/initializers/rack_timeout.rb +++ b/config/initializers/rack_timeout.rb @@ -20,3 +20,7 @@ if Gitlab::Runtime.puma? && !Rails.env.test? observer = Gitlab::Cluster::RackTimeoutObserver.new Rack::Timeout.register_state_change_observer(:gitlab_rack_timeout, &observer.callback) end + +unless Gitlab::Utils.to_boolean(ENV['GITLAB_RAILS_RACK_TIMEOUT_ENABLE_LOGGING'], default: true) + Rack::Timeout::Logger.disable +end |