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
chore: normalize returning of errors in NewDaemon #16861
Conversation
a7bb5ab
to
d0ad10a
Compare
test-me-please |
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.
Changes look good to me. Should we be applying https://github.com/golang/go/wiki/CodeReviewComments#error-strings to the error messages as well?
@christarazi I'm not opposed to standardizing our error message handling by that, as long as we maintain consistency it looks like a good ruler for us to use. |
d0ad10a
to
39575e9
Compare
@christarazi I pre-emptively pushed a commit with all the errors conforming to the prose you provided. If any others don't like this style, feel free to debate it here, I can easily back out the change. |
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.
✔️
test-me-please |
house-keeping PR to ensure similar behavior in the NewDaemon method. After this commit all error conditions are returned if the intent is to fatal the process. Signed-off-by: Louis DeLosSantos <louis.delos@isovalent.com>
39575e9
to
b930eb7
Compare
test-me-please |
commit cilium#16861 introduced a normalization of error handling into the daemon/cmd package. by doing so we swallowed useful error logs. this commit adds the error logs back and adds a few additional fmt.Errorf wrappers where logging is not adequate Signed-off-by: Louis DeLosSantos <louis.delos@isovalent.com>
commit #16861 introduced a normalization of error handling into the daemon/cmd package. by doing so we swallowed useful error logs. this commit adds the error logs back and adds a few additional fmt.Errorf wrappers where logging is not adequate Signed-off-by: Louis DeLosSantos <louis.delos@isovalent.com>
[ upstream commit 6154322 ] commit cilium#16861 introduced a normalization of error handling into the daemon/cmd package. by doing so we swallowed useful error logs. this commit adds the error logs back and adds a few additional fmt.Errorf wrappers where logging is not adequate Signed-off-by: Louis DeLosSantos <louis.delos@isovalent.com> Signed-off-by: Aditi Ghag <aditi@cilium.io>
[ upstream commit 6154322 ] commit #16861 introduced a normalization of error handling into the daemon/cmd package. by doing so we swallowed useful error logs. this commit adds the error logs back and adds a few additional fmt.Errorf wrappers where logging is not adequate Signed-off-by: Louis DeLosSantos <louis.delos@isovalent.com> Signed-off-by: Aditi Ghag <aditi@cilium.io>
house-keeping PR to ensure similar behavior in the NewDaemon method.
After this commit all error conditions are returned if the intent is to
fatal the process.
Signed-off-by: Louis DeLosSantos louis.delos@isovalent.com