Skip to content

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

Merged
repeatedly merged 1 commit into
fluent:masterfrom
kenhys:tcp-listening-info
Dec 23, 2020
Merged

in_tcp: show listening address and port for consistency with in_udp#3213
repeatedly merged 1 commit into
fluent:masterfrom
kenhys:tcp-listening-info

Conversation

@kenhys

@kenhys kenhys commented Dec 23, 2020

Copy link
Copy Markdown
Contributor

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>
def start
super

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

Copy link
Copy Markdown
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
Copy Markdown
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.

3 participants