Skip to content

Commit

Permalink
Do not log every tcp connect/disconnect
Browse files Browse the repository at this point in the history
leaving as comments for whenever I rig up global debug logging.

closes #1062
  • Loading branch information
sparrc committed Apr 20, 2016
1 parent 9478776 commit ed3c930
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions plugins/inputs/tcp_listener/tcp_listener.go
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit ed3c930

Please sign in to comment.