-
Notifications
You must be signed in to change notification settings - Fork 286
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
Log exception in Webhook.process? #370
Comments
It makes a lot of sense, since you might be unable to create a |
Are you answering your own question and therefore we can close this? |
No, I am rather giving a reason for changing this in the comment. |
So you are saying there are some exceptions that we'd be prevented from storing in the database? I'd like to store as much in the database as possible, and only when all else fails, use the logger. |
I think we should still try to log the exception in the database. If you want to also add a |
Do you think it makes sense to log exceptions in https://github.com/pinax/pinax-stripe/blob/34e6a3cec7a7df2d60c5b2696066c8dba8947e75/pinax/stripe/webhooks.py#L95-L96?
It will create an EventProcessingException object already (via https://github.com/pinax/pinax-stripe/blob/34e6a3cec7a7df2d60c5b2696066c8dba8947e75/pinax/stripe/actions/exceptions.py#L7-L23), but I think it would be good to use
logger.exception
here, for more visibility (server logs etc).Alternatively we could use the post-save signal on EventProcessingException to do it manually.
The text was updated successfully, but these errors were encountered: