3
0
mirror of https://github.com/ergochat/ergo.git synced 2025-01-11 04:32:39 +01:00

Merge pull request #1737 from slingamn/readerror

add a debug logline for client read errors
This commit is contained in:
Shivaram Lingamneni 2021-07-05 03:34:34 -04:00 committed by GitHub
commit dcfd8d8fe8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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: