-
Notifications
You must be signed in to change notification settings - Fork 273
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 logger for debugging #51
Comments
How are we supposed to debug our apps atm? I'm a bit confused on how this is meant to be used. My server is running, but when something goes wrong, there is no output at all, and I have to start adding try/catch blocks in my code to get the location of the error. Is there another way to do this? |
@kevmoo do you maybe have some tips for this? I'm really struggling with this. A typical problem for me is this: Something goes wrong in my server, and my client gets this response:
And that's it basically. The server completely "swallows" the Error/Exception and I have to start debugging. |
@enyo – are you using a Dart server, too? |
Yes, I'm only talking about the dart server actually. As in: an exception is thrown in my grpc server code and the grpc library returns a 501 with the exception message but doesn't log anything that I can use to find the error. |
Ah! That makes sense. CC @mraleph |
CC @mit-mit |
I don't really have any strong architectural opinion on how to debug. I just sprinkle I think the best I could suggest is to take |
@mraleph I'm not sure I understand. Are you recommending this approach to be used by me, or is this something you suggest should be implemented to allow for this functionality? I couldn't find any place where |
@enyo I am saying somebody could modify |
Hi, is there any updates? |
Linking to some best-practices for GRPC debugging (from the bug or otherwise) could be helpful. I'm currently exploring gRPC and hit some bug I don't understand and wound up here seeking debugging options. :) |
flutter/devtools#2044 points to some other efforts in this area. |
It would be really great if this package would use a (logging-compliant) logger that could be set to get better reporting when things go wrong.
The text was updated successfully, but these errors were encountered: