-
Notifications
You must be signed in to change notification settings - Fork 123
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 context/traceback for errors #912
Comments
Errors are not logged. They are returned and sent to the client. Recently we merged a PR adding a I agree, though, that errors, specially git errors, should come with a lot more information (aka, don't just passing errors down without adding info). |
jfyi in this case |
I've been thinking about how to approach this and have more meaningful errors that contain all the possible info. What I think we should do is to not just The problem here:
Conclusion: all three approaches have advantages and shortcomings and there is not a single one that satisfies our needs to make this not a total PITA. Since we're in control of go-errors, perhaps we can address these shortcomings by implementing a couple features in it:
Bonus solution: make an internal package in go-mysql-server that gitbase can also use implementing the proposed functions and aliasing the types and functions in go-errors so that the library can be viable for our usecase. WDYT @src-d/data-processing @smola? |
I keep getting
unknown error: object not found
but there are no logs about this error for debugging.Example:
But all I see in the logs:
The text was updated successfully, but these errors were encountered: