Skip to content
This repository was archived by the owner on Jun 26, 2023. It is now read-only.

Commit 6947c42

Browse files
committed
Restore logging statement on startup. Also includes SSL state.
Fixes logstash-plugins#92 Fixes logstash-plugins#96
1 parent ea50392 commit 6947c42

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/logstash/inputs/tcp.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,7 @@ def register
135135
# in the close method even if we also close it in the stop method since we could have
136136
# a situation where register is called but not run & stop.
137137

138+
@logger.info("Starting tcp input listener", :address => "#{@host}:#{@port}", :ssl_enable => "#{@ssl_enable}")
138139
if server?
139140
if @ssl_enable
140141
self.server_socket = new_server_socket
@@ -324,7 +325,6 @@ def load_cert_store
324325
end
325326

326327
def new_server_socket
327-
@logger.info("Starting tcp input listener", :address => "#{@host}:#{@port}")
328328
begin
329329
socket = TCPServer.new(@host, @port)
330330
rescue Errno::EADDRINUSE

0 commit comments

Comments
 (0)