Skip to content
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

Merged
merged 10 commits into from Mar 22, 2024

Conversation

wafuwafu13
Copy link
Contributor

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.

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 <jaruwafu@gmail.com>
@wafuwafu13 wafuwafu13 requested a review from a team as a code owner February 27, 2024 21:43
Signed-off-by: wafuwafu13 <jaruwafu@gmail.com>
Copy link
Member

@alpeb alpeb left a 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.

@mateiidavid
Copy link
Member

@wafuwafu13 do you mind pulling in the latest main into your branch? That should fix the CodeQL failure. :)

@wafuwafu13
Copy link
Contributor Author

@mateiidavid
Thank you for telling me, but I'm traveling so I would like to do that next week.

Signed-off-by: wafuwafu13 <jaruwafu@gmail.com>
@@ -1,8 +1,10 @@
package destination

import (
"errors"
Copy link
Member

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 <jaruwafu@gmail.com>
Signed-off-by: wafuwafu13 <jaruwafu@gmail.com>
Copy link
Member

@mateiidavid mateiidavid left a 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!

controller/cmd/destination/main.go Outdated Show resolved Hide resolved
@olix0r olix0r merged commit 9a5284f into linkerd:main Mar 22, 2024
36 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants