mirror of
https://github.com/discourse/discourse.git
synced 2025-06-03 16:20:42 +08:00
DEV: Increase log level for /srv/status
route.
This reduces the amount of noise in our logs.
This commit is contained in:
@ -8,7 +8,8 @@ module DiscourseRackQuietAssetsLogger
|
|||||||
def call(env)
|
def call(env)
|
||||||
override = false
|
override = false
|
||||||
if (env['PATH_INFO'].index("/assets/") == 0) ||
|
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
|
if ::Logster::Logger === Rails.logger
|
||||||
override = true
|
override = true
|
||||||
Rails.logger.override_level = Logger::ERROR
|
Rails.logger.override_level = Logger::ERROR
|
||||||
|
Reference in New Issue
Block a user