mirror of
https://github.com/m1k1o/neko.git
synced 2025-07-29 14:39:12 +02:00
log socket disconnected error.
This commit is contained in:
parent
1ce6dad973
commit
91fed3c480
1 changed files with 3 additions and 1 deletions
|
@ -228,7 +228,9 @@ func (ws *WebSocketHandler) handle(connection *websocket.Conn, id string) {
|
|||
defer func() {
|
||||
ticker.Stop()
|
||||
ws.logger.Debug().Str("address", connection.RemoteAddr().String()).Msg("handle socket ending")
|
||||
ws.handler.Disconnected(id)
|
||||
if err := ws.handler.Disconnected(id); err != nil {
|
||||
ws.logger.Warn().Err(err).Msg("socket disconnected with error")
|
||||
}
|
||||
}()
|
||||
|
||||
for {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue