-
-
Notifications
You must be signed in to change notification settings - Fork 422
Added better error handling for the gRPC server. #592
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
Conversation
894406e
to
847edc3
Compare
cli/daemon/daemon.go
Outdated
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.
can we do feedback.Errorf
instead? This way the error will be always visible in the shell, not regarding of passing -v
and will be added to the logs as well. Same for other occurrences of logrus.*
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.
Thank you for the feedback. I have made the changes based on your request and left the original logrus.Fatalf("failed to serve: %v", err)
as is.
- Consumers of the CLI have a better exit code when it fails at startup - Logged message to stdout, so gRPC clients know, it is time to connect Signed-off-by: Akos Kitta <kittaakos@typefox.io>
847edc3
to
dfafb49
Compare
Signed-off-by: Akos Kitta kittaakos@typefox.io