-
Notifications
You must be signed in to change notification settings - Fork 61
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
Add function name to errors and logs #147
Conversation
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.
LGTM 👍
@ionut-arm it seems this is largely OK to merge (after fixing conflicts). Is there anything else you'd like to add to it? |
16964d4
to
1d605a1
Compare
1d605a1
to
77d046a
Compare
Ok, I've incorporated your feedback, I don't think I can easily avoid breaking the interface since we rely on enums for errors.. |
Adding the name of the function that lead to a backend error to the log messages it generates and to the error returned to the client. Signed-off-by: Ionut Mihalcea <ionut.mihalcea@arm.com>
77d046a
to
43b76e8
Compare
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.
Okay, I think this looks good 👍 I'm a bit worried about extending Error
enum but if you bump version on release it should be fine.
Thanks for this change! I think it will make debugging quite a bit easier!
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.
Apologies for the delay. LGTM :)
Adding the name of the function that lead to a backend error to the log messages it generates and to the error returned to the client.
cc @ellerh