mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FIX: logster update, enable ignore patterns
This commit is contained in:
@@ -157,7 +157,7 @@ GEM
|
|||||||
thor (~> 0.15)
|
thor (~> 0.15)
|
||||||
libv8 (3.16.14.3)
|
libv8 (3.16.14.3)
|
||||||
listen (0.7.3)
|
listen (0.7.3)
|
||||||
logster (0.1.3)
|
logster (0.1.4)
|
||||||
lru_redux (0.8.1)
|
lru_redux (0.8.1)
|
||||||
mail (2.5.4)
|
mail (2.5.4)
|
||||||
mime-types (~> 1.16)
|
mime-types (~> 1.16)
|
||||||
|
|||||||
@@ -1,13 +1,13 @@
|
|||||||
if Rails.env.production?
|
if Rails.env.production?
|
||||||
# Logster.store.ignore = [
|
Logster.store.ignore = [
|
||||||
# # honestly, Rails should not be logging this, its real noisy
|
# honestly, Rails should not be logging this, its real noisy
|
||||||
# /^ActionController::RoutingError \(No route matches/,
|
/^ActionController::RoutingError \(No route matches/,
|
||||||
|
|
||||||
# /^PG::Error: ERROR:\s+duplicate key/,
|
/^PG::Error: ERROR:\s+duplicate key/,
|
||||||
|
|
||||||
# # suppress trackback spam bots
|
# suppress trackback spam bots
|
||||||
# Logster::IgnorePattern.new("Can't verify CSRF token authenticity", { REQUEST_URI: /\/trackback\/$/ })
|
Logster::IgnorePattern.new("Can't verify CSRF token authenticity", { REQUEST_URI: /\/trackback\/$/ })
|
||||||
# ]
|
]
|
||||||
|
|
||||||
Logster.config.authorize_callback = lambda{|env|
|
Logster.config.authorize_callback = lambda{|env|
|
||||||
user = CurrentUser.lookup_from_env(env)
|
user = CurrentUser.lookup_from_env(env)
|
||||||
|
|||||||
Reference in New Issue
Block a user