mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-03-06 02:51:34 +00:00
Merge pull request #13108 from dacook/reduce-rack-timeout-logs
Log rack-timeout ready and completed messages in DEBUG mode
This commit is contained in:
7
config/initializers/rack_timeout.rb
Normal file
7
config/initializers/rack_timeout.rb
Normal file
@@ -0,0 +1,7 @@
|
||||
# https://github.com/zombocom/rack-timeout/blob/main/doc/logging.md
|
||||
# state changes into timed_out and expired are logged at the ERROR level
|
||||
|
||||
# Log ready and completed messages in DEBUG mode only (instead of default INFO)
|
||||
Rack::Timeout::StateChangeLoggingObserver::STATE_LOG_LEVEL[:ready] = :debug
|
||||
Rack::Timeout::StateChangeLoggingObserver::STATE_LOG_LEVEL[:completed] = :debug
|
||||
|
||||
Reference in New Issue
Block a user