From fedf4a91763b75bafee9a0d3b037082f585b89cd Mon Sep 17 00:00:00 2001 From: Shivaram Lingamneni Date: Mon, 5 Jul 2021 03:30:18 -0400 Subject: [PATCH] add a debug logline for client read errors May help clarify TLS configuration issues, possibly others too --- irc/client.go | 1 + 1 file changed, 1 insertion(+) diff --git a/irc/client.go b/irc/client.go index 394f2a65..39013e68 100644 --- a/irc/client.go +++ b/irc/client.go @@ -659,6 +659,7 @@ func (client *Client) run(session *Session) { if err == errInvalidUtf8 { invalidUtf8 = true // handle as normal, including labeling } else if err != nil { + client.server.logger.Debug("connect-ip", "read error from client", err.Error()) var quitMessage string switch err { case ircreader.ErrReadQ: