Skip to content
This repository has been archived by the owner on Jan 25, 2018. It is now read-only.

turn on atomic requests on prod #522

Merged
merged 1 commit into from Aug 6, 2015
Merged

turn on atomic requests on prod #522

merged 1 commit into from Aug 6, 2015

Conversation

andymckay
Copy link
Contributor

@@ -13,6 +13,7 @@
def custom_exception_handler(exc):
# If you raise an error in solitude, it comes to here and
# we rollback the transaction.
log.exception('Handling exception, about to roll back')
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure that it's safe to do this because even though it logs the last exception in the system stack, Django might have caught something innocuous (like a KeyError) already.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think you should log exc directly

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That seems legit, will do.

@kumar303
Copy link
Contributor

kumar303 commented Aug 6, 2015

r+wc

andymckay pushed a commit that referenced this pull request Aug 6, 2015
turn on atomic requests on prod
@andymckay andymckay merged commit ccdbd02 into mozilla:master Aug 6, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Rollback error occuring on /generic/buyer/
2 participants