From 8b7df6dd464ab609b569cafad96b675cb9d17408 Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Mon, 6 Dec 2021 18:40:37 +0100 Subject: [PATCH] Downgrade conn log messages to debug --- conn.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/conn.go b/conn.go index 72d7af8..7b210cd 100644 --- a/conn.go +++ b/conn.go @@ -166,7 +166,7 @@ func newConn(srv *Server, ic ircConn, options *connOptions) *conn { if err := c.conn.Close(); err != nil && !isErrClosed(err) { c.logger.Printf("failed to close connection: %v", err) } else { - c.logger.Printf("connection closed") + c.logger.Debugf("connection closed") } // Drain the outgoing channel to prevent SendMessage from blocking for range outgoing { @@ -174,7 +174,7 @@ func newConn(srv *Server, ic ircConn, options *connOptions) *conn { } }() - c.logger.Printf("new connection") + c.logger.Debugf("new connection") return c }