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

in_tcp: show listening address and port for consistency with in_udp #3213

Merged
merged 1 commit into from Dec 23, 2020

Conversation

kenhys
Copy link
Contributor

@kenhys kenhys commented Dec 23, 2020

Which issue(s) this PR fixes:

Not bound to specific issue

What this PR does / why we need it:

in_udp plugin shows log message when starting server, but this
behavior is not true for in_tcp plugin.
For consistency it is better to show startup message.

[info]: #0 listening tcp socket bind="..." port=...

This change is introduced that there is a case that inconsistency log
leads confusion when in_tcp and in_udp is used at the same time.

Docs Changes:

N/A

Release Note:

N/A

in_udp plugin shows log message when starting server, but this
behavior is not true for in_tcp plugin.
For consistency it is better to show startup message.

  [info]: #0 listening tcp socket bind="..." port=...

Signed-off-by: Kentaro Hayashi <hayashi@clear-code.com>
@@ -98,6 +98,7 @@ def multi_workers_ready?
def start
super

log.info "listening tcp socket", bind: @bind, port: @port
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@repeatedly repeatedly merged commit 36d017d into fluent:master Dec 23, 2020
@repeatedly
Copy link
Member

Thanks!

@kenhys kenhys deleted the tcp-listening-info branch February 17, 2021 04:37
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

3 participants