-
Notifications
You must be signed in to change notification settings - Fork 4
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 full stack traces on error #37
Conversation
@dcrissman what is the impact of throwing a runtime exception? The concern I have is that it will get back to the client. We do not want to have a request fail because a hook fails, this is a bad user experience. It will be confusing. Does the hook processing ignore errors thrown by hook implementations? |
The Mediator wraps all CRUD operations in a try/catch and handles accordingly. That said I should probably use Error.get instead.
I would say it depends on the hook. In the case of the esb hook, if an event was missed I would think that would be pretty bad. |
Clients don't care about integration implications. They just want their On Wed, Sep 30, 2015 at 8:05 AM, Dennis Crissman notifications@github.com
|
for (Error e : r.getErrors()) { | ||
LOGGER.error(e.toString()); | ||
LOGGER.error("Lightblue Error", e); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A more descriptive error message would be useful here. Same for the next one,
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe we can use a different logger, and send the error logs to a separate logfile?
log full stack traces on error
No description provided.