DEV: Increase log level for `/srv/status` route.
This reduces the amount of noise in our logs.
This commit is contained in:
parent
f57ecf22e0
commit
c9964b95ce
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue