DEV: Increase log level for `/srv/status` route.

This reduces the amount of noise in our logs.
This commit is contained in:
Guo Xiang Tan 2020-06-12 12:17:28 +08:00
parent f57ecf22e0
commit c9964b95ce
No known key found for this signature in database
GPG Key ID: FBD110179AAC1F20
1 changed files with 2 additions and 1 deletions

View File

@ -8,7 +8,8 @@ module DiscourseRackQuietAssetsLogger
def call(env)
override = false
if (env['PATH_INFO'].index("/assets/") == 0) ||
(env['PATH_INFO'].index("mini-profiler-resources") == 0)
(env['PATH_INFO'].index("mini-profiler-resources") == 0) ||
(env['PATH_INFO'].index("/srv/status") == 0)
if ::Logster::Logger === Rails.logger
override = true
Rails.logger.override_level = Logger::ERROR