From 44428c1b2ac2a8a88a2e329e3f770d5f286a2dfa Mon Sep 17 00:00:00 2001 From: Kentaro Hayashi Date: Wed, 23 Dec 2020 10:22:23 +0900 Subject: [PATCH] in_tcp: show listening address and port for consistency with in_udp 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 --- lib/fluent/plugin/in_tcp.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/fluent/plugin/in_tcp.rb b/lib/fluent/plugin/in_tcp.rb index 6bead90321..1d2eb3e6fe 100644 --- a/lib/fluent/plugin/in_tcp.rb +++ b/lib/fluent/plugin/in_tcp.rb @@ -98,6 +98,7 @@ def multi_workers_ready? def start super + log.info "listening tcp socket", bind: @bind, port: @port del_size = @delimiter.length if @_extract_enabled && @_extract_tag_key server_create(:in_tcp_server_single_emit, @port, bind: @bind, resolve_name: !!@source_hostname_key) do |data, conn|