-
Notifications
You must be signed in to change notification settings - Fork 3
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
Build a custom logger #67
Comments
I don't like the idea of having a I would suggest having a {
"message" : "Good description of the problem",
"error": "error message that is catched from another func call" // not sure if really needed
} |
Yes this was not something I meant should be implementerad now. The error messages are good and often clearly tells what went wrong. The problem now is simply that all errors are formatted differently which doesnt adhere to the "design-cheat-sheet" you sent us: https://r.bluethl.net/how-to-design-better-apis#heading-10-use-standardized-error-responses |
Hi, I understood that you want to uniform the error respones and I agree on that. |
Okay, got you! The format I proposed came straight from that guide I linked previously. The format is something you could finalize later. The implementation of this logger is not in our backlog for this project, perhaps a later group can take this on another time. |
The API's current logging system is quite all over the place. different errors are reported in their own structure, some examples are
The suggestion is to have the logger report errors that are structured the same way, perhaps:
The text was updated successfully, but these errors were encountered: