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:
parent
98c4d0e399
commit
fedf4a9176
@ -659,6 +659,7 @@ func (client *Client) run(session *Session) {
|
|||||||
if err == errInvalidUtf8 {
|
if err == errInvalidUtf8 {
|
||||||
invalidUtf8 = true // handle as normal, including labeling
|
invalidUtf8 = true // handle as normal, including labeling
|
||||||
} else if err != nil {
|
} else if err != nil {
|
||||||
|
client.server.logger.Debug("connect-ip", "read error from client", err.Error())
|
||||||
var quitMessage string
|
var quitMessage string
|
||||||
switch err {
|
switch err {
|
||||||
case ircreader.ErrReadQ:
|
case ircreader.ErrReadQ:
|
||||||
|
Loading…
Reference in New Issue
Block a user