-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
fix: change log level when err is http.ErrServerClosed
#12167
Conversation
ListenAndServe always returns a non-nil error. If error is http.ErrServerClosed, server is not failed to start. So log level sholud be Info not Error if error is http.ErrServerClosed. Signed-off-by: wafuwafu13 <[email protected]>
Signed-off-by: wafuwafu13 <[email protected]>
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.
Nice! Some checks are a little flaky, so triggering them again.
@wafuwafu13 do you mind pulling in the latest main into your branch? That should fix the |
@mateiidavid |
Signed-off-by: wafuwafu13 <[email protected]>
d4aac8a
to
75b24a2
Compare
@@ -1,8 +1,10 @@ | |||
package destination | |||
|
|||
import ( | |||
"errors" |
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.
Hmm, for some reason this got picked up even though it's not part of this change. Do you mind pulling latest main again?
git pull <upstream> main
should do the trick. If it doesn't, you can perhaps do a soft reset and checkout the file.
Signed-off-by: wafuwafu13 <[email protected]>
Signed-off-by: wafuwafu13 <[email protected]>
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.
@wafuwafu13 thank you so much for the contribution!
ListenAndServe always returns a non-nil error.
If error is
http.ErrServerClosed
, server is not failed to start.So log level sholud be Info not Error if error is
http.ErrServerClosed
.