From d2acd997be88ff43e8e33e29e2fae9f949c1c0f2 Mon Sep 17 00:00:00 2001 From: lest Date: Wed, 16 Nov 2011 19:23:53 +0200 Subject: [PATCH] don't log DocumentNotFound exception --- config/initializers/hoptoad.rb | 3 +++ 1 file changed, 3 insertions(+), 0 deletions(-) diff --git a/config/initializers/hoptoad.rb b/config/initializers/hoptoad.rb index 8853ab9..6218c78 100644 --- a/config/initializers/hoptoad.rb +++ b/config/initializers/hoptoad.rb @@ -2,5 +2,8 @@ HoptoadNotifier.configure do |config| # Internal Errbit errors are stored locally, but we need # to set a dummy API key so that HoptoadNotifier doesn't complain. config.api_key = "---------" + + # Don't log error that causes 404 page + config.ignore << "Mongoid::Errors::DocumentNotFound" end -- libgit2 0.21.2