From 8b5dfeb18fc99290aa48e4f2986173b5b0204f58 Mon Sep 17 00:00:00 2001 From: Jeff Atwood Date: Thu, 9 Jun 2016 16:38:41 -0700 Subject: [PATCH] ignore a few more common meaningless JS errs --- .gitignore | 1 + config/initializers/100-logster.rb | 12 +++++++++--- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/.gitignore b/.gitignore index fcdaca12caa..d88f2ca1642 100644 --- a/.gitignore +++ b/.gitignore @@ -106,3 +106,4 @@ config/version.rb bundler_stubs/* vendor/bundle/* +*.db diff --git a/config/initializers/100-logster.rb b/config/initializers/100-logster.rb index e237d6aa75e..be4191583c3 100644 --- a/config/initializers/100-logster.rb +++ b/config/initializers/100-logster.rb @@ -28,11 +28,17 @@ if Rails.env.production? # suppress unconditionally for now /^Can't verify CSRF token authenticity$/, - # 404s can be dealt with elsewise - /^ActiveRecord::RecordNotFound /, + # Yandex bot triggers this JS error a lot + /^Uncaught ReferenceError: I18n is not defined/, + + # related to browser plugins somehow, we don't care + /Error calling method on NPObject/, + + # 404s can be dealt with elsewhere + /^ActiveRecord::RecordNotFound/, # bad asset requested, no need to log - /^ActionController::BadRequest / + /^ActionController::BadRequest/ ] end