mirror of
https://github.com/lingble/chatwoot.git
synced 2025-11-01 19:48:08 +00:00
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
7 lines
210 B
Ruby
7 lines
210 B
Ruby
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
|