From 2f7da03cce24e572253e97b6bf21d9d34efa2a0f Mon Sep 17 00:00:00 2001 From: Cameron Sparr Date: Tue, 19 Apr 2016 22:57:22 -0600 Subject: [PATCH] Do not log every tcp connect/disconnect leaving as comments for whenever I rig up global debug logging. closes #1062 --- plugins/inputs/tcp_listener/tcp_listener.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/plugins/inputs/tcp_listener/tcp_listener.go b/plugins/inputs/tcp_listener/tcp_listener.go index b7f5ef9ed..ce07a7601 100644 --- a/plugins/inputs/tcp_listener/tcp_listener.go +++ b/plugins/inputs/tcp_listener/tcp_listener.go @@ -150,8 +150,7 @@ func (t *TcpListener) tcpListen() error { if err != nil { return err } - - log.Printf("Received TCP Connection from %s", conn.RemoteAddr()) + // log.Printf("Received TCP Connection from %s", conn.RemoteAddr()) select { case <-t.accept: @@ -187,7 +186,7 @@ func (t *TcpListener) handler(conn *net.TCPConn, id string) { defer func() { t.wg.Done() conn.Close() - log.Printf("Closed TCP Connection from %s", conn.RemoteAddr()) + // log.Printf("Closed TCP Connection from %s", conn.RemoteAddr()) // Add one connection potential back to channel when this one closes t.accept <- true t.forget(id)