ignore a few more common meaningless JS errs

This commit is contained in:
Jeff Atwood 2016-06-09 16:38:41 -07:00
parent d7622f0665
commit 8b5dfeb18f
2 changed files with 10 additions and 3 deletions

1
.gitignore vendored
View File

@ -106,3 +106,4 @@ config/version.rb
bundler_stubs/* bundler_stubs/*
vendor/bundle/* vendor/bundle/*
*.db

View File

@ -28,11 +28,17 @@ if Rails.env.production?
# suppress unconditionally for now # suppress unconditionally for now
/^Can't verify CSRF token authenticity$/, /^Can't verify CSRF token authenticity$/,
# 404s can be dealt with elsewise # Yandex bot triggers this JS error a lot
/^ActiveRecord::RecordNotFound /, /^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 # bad asset requested, no need to log
/^ActionController::BadRequest / /^ActionController::BadRequest/
] ]
end end