Commit 9b0d7aebee08f77f74827010d1d5454d753c8bb5

Authored by Nathan B
2 parents 51acf14c d2acd997
Exists in master and in 1 other branch production

Merge pull request #127 from lest/mongo-not-found-page

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