chore: Set rack-timeout to log at ERROR level (#10400)

40 % of Chatwoot's current log volume is from state transition logs generated by `rack-timeout`, which are logged at the `INFO` level. This PR reduce the noise in logs and set RACK::TIMEOUT to log at `error` level
This commit is contained in:
Vishnu Narayanan
2024-11-12 02:05:05 +05:30
committed by GitHub
parent db327378fa
commit 7a45144526

View File

@@ -0,0 +1,6 @@
require 'rack-timeout'
# Reduce noise by filtering state=ready and state=completed which are logged at INFO level
Rails.application.config.after_initialize do
Rack::Timeout::Logger.level = Logger::ERROR
end