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

Improve logging for StandardError handling #21

Open
3 of 4 tasks
mattdowdell opened this issue Nov 15, 2016 · 1 comment
Open
3 of 4 tasks

Improve logging for StandardError handling #21

mattdowdell opened this issue Nov 15, 2016 · 1 comment
Labels

Comments

@mattdowdell
Copy link
Contributor

mattdowdell commented Nov 15, 2016

The API currently handles StandardError (or children of) exceptions but only outputs an error message top the end user.

This should be improved by logging the error to the relevant log file (production/development/test) and sending an email to let maintainers know about the error in production.

Tasks

  • - Log error to the relevant file.
  • - File should display level of error.
  • - File should display the time of the error in development and production.
  • - Fatal errors caught by the API error handling should trigger a email message when in production to [email protected].
@mattdowdell
Copy link
Contributor Author

Additionally, the level and time should be added to the logs for easier detection when trying to grep/search for the error.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant