mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
A new logster, that gets rid of a pile of 404s being logged as fatal errors.
This commit is contained in:
parent
7687ceef66
commit
c25cd4e78d
@ -151,7 +151,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.0.3)
|
logster (0.0.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)
|
||||||
|
6
config/initializers/logster.rb
Normal file
6
config/initializers/logster.rb
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
if Rails.env.production?
|
||||||
|
# honestly, Rails should not be logging this, its real noisy
|
||||||
|
Logster.store.ignore = [
|
||||||
|
/^ActionController::RoutingError \(No route matches/
|
||||||
|
]
|
||||||
|
end
|
Loading…
Reference in New Issue
Block a user