mirror of
https://github.com/m1k1o/neko.git
synced 2025-07-19 09:37:50 +02:00
log ws send/recieve
This commit is contained in:
parent
d5bff32302
commit
7576d8c1da
2 changed files with 15 additions and 1 deletions
|
@ -240,6 +240,7 @@ func (ws *WebSocketHandler) handle(connection *websocket.Conn, id string) {
|
|||
case raw := <-bytes:
|
||||
ws.logger.Debug().
|
||||
Str("session", id).
|
||||
Str("address", connection.RemoteAddr().String()).
|
||||
Str("raw", string(raw)).
|
||||
Msg("recieved message from client")
|
||||
if err := ws.handler.Message(id, raw); err != nil {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue