Do not log every tcp connect/disconnect

leaving as comments for whenever I rig up global debug logging.

closes #1062
This commit is contained in:
Cameron Sparr 2016-04-19 22:57:22 -06:00
parent f1c995dcb8
commit 2f7da03cce
1 changed files with 2 additions and 3 deletions

View File

@ -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)