Downgrade conn log messages to debug

This commit is contained in:
Simon Ser 2021-12-06 18:40:37 +01:00
parent d829d2ab12
commit 8b7df6dd46

View File

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