Commit d2acd997be88ff43e8e33e29e2fae9f949c1c0f2

Authored by lest
1 parent 51acf14c
Exists in master and in 1 other branch production

don't log DocumentNotFound exception

Showing 1 changed file with 3 additions and 0 deletions   Show diff stats
config/initializers/hoptoad.rb
@@ -2,5 +2,8 @@ HoptoadNotifier.configure do |config| @@ -2,5 +2,8 @@ HoptoadNotifier.configure do |config|
2 # Internal Errbit errors are stored locally, but we need 2 # Internal Errbit errors are stored locally, but we need
3 # to set a dummy API key so that HoptoadNotifier doesn't complain. 3 # to set a dummy API key so that HoptoadNotifier doesn't complain.
4 config.api_key = "---------" 4 config.api_key = "---------"
  5 +
  6 + # Don't log error that causes 404 page
  7 + config.ignore << "Mongoid::Errors::DocumentNotFound"
5 end 8 end
6 9