mirror of
https://github.com/discourse/discourse.git
synced 2025-09-06 10:50:21 +08:00
DEV: Increase log levels for more assets/static paths.
This commit is contained in:
parent
a1dd761bd9
commit
09a89cff1a
1 changed files with 4 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue