Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Don't log DocumentNotFound exception #127

Merged
merged 1 commit into from Nov 16, 2011

Conversation

lest
Copy link
Member

@lest lest commented Nov 16, 2011

It resolves #125.

When Mongoid::Errors::DocumentNotFound is raising 404 page (http://git.io/h0blDg#L78) is rendered but this exception is also logged to Self.Errbit.

HoptoadNotifier ignores by default ActiveRecord::RecordNotFound so it's reasonable to ignore Mongoid::Errors::DocumentNotFound as well.

@ndbroadbent
Copy link
Member

Thanks!

This could also be fixed in the HoptoadNotifier gem, (now known as AirbrakeNotifier). But this is good for now.

ndbroadbent added a commit that referenced this pull request Nov 16, 2011
Don't log DocumentNotFound exception
@ndbroadbent ndbroadbent merged commit 9b0d7ae into errbit:master Nov 16, 2011
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Dose it can disabled log on DocumentNotFound error?
2 participants