DEV: Increase log levels for more assets/static paths.

This commit is contained in:
Guo Xiang Tan 2020-09-01 09:52:04 +08:00
parent a1dd761bd9
commit 09a89cff1a
No known key found for this signature in database
GPG Key ID: FBD110179AAC1F20
1 changed files with 4 additions and 0 deletions

View File

@ -8,6 +8,10 @@ module DiscourseRackQuietAssetsLogger
def call(env)
override = false
if (env['PATH_INFO'].index("/assets/") == 0) ||
(env['PATH_INFO'].index("/stylesheets") == 0) ||
(env['PATH_INFO'].index("/svg-sprite") == 0) ||
(env['PATH_INFO'].index("/manifest") == 0) ||
(env['PATH_INFO'].index("/service-worker") == 0) ||
(env['PATH_INFO'].index("mini-profiler-resources") == 0) ||
(env['PATH_INFO'].index("/srv/status") == 0)
if ::Logster::Logger === Rails.logger