3
0
mirror of https://github.com/ergochat/ergo.git synced 2024-12-23 11:12:44 +01:00

add a debug logline for client read errors

May help clarify TLS configuration issues, possibly others too
This commit is contained in:
Shivaram Lingamneni 2021-07-05 03:30:18 -04:00
parent 98c4d0e399
commit fedf4a9176

View File

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