Files
openfoodnetwork/config/initializers/rack_timeout.rb
David Cook a0833af780 Log rack-timeout ready and completed messages in DEBUG mode
Instead of default INFO, because it pollutes the logs unnecessarily.

Error messages will still be logged the same as before.
2025-01-30 10:20:58 +11:00

8 lines
379 B
Ruby

# 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