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

Logging stack trace in case of "Erp under maintenance error" #61

Open
sbidoul opened this issue Apr 30, 2020 · 2 comments
Open

Logging stack trace in case of "Erp under maintenance error" #61

sbidoul opened this issue Apr 30, 2020 · 2 comments

Comments

@sbidoul
Copy link
Member

sbidoul commented Apr 30, 2020

When Locomotive cannot reach Odoo, an error is logged but no context is provided:

rescue
log_error 'Odoo Error: server have an internal error, active maintenance mode'
raise ShopInvader::ErpMaintenance.new('ERP under maintenance')

This error can arise for a number of reasons (bad URL, api key as integer instead of string, etc).
These are very hard to diagnose.
Is it possible to log a stack trace in that case?

Not sure how to do that in ruby @sebastienbeau

@sbidoul
Copy link
Member Author

sbidoul commented Apr 30, 2020

cc/ @Laurent-Corron

@sbidoul
Copy link
Member Author

sbidoul commented Apr 30, 2020

cc/ @lmignon

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

No branches or pull requests

1 participant