mirror of
https://github.com/m1k1o/neko.git
synced 2025-07-27 05:29:01 +02:00
websockets logging.
This commit is contained in:
parent
d00d66e0ec
commit
8f8cd47e85
10 changed files with 115 additions and 64 deletions
|
@ -7,8 +7,10 @@ import (
|
|||
)
|
||||
|
||||
func (h *MessageHandlerCtx) screenSet(session types.Session, payload *message.ScreenSize) error {
|
||||
logger := h.logger.With().Str("session_id", session.ID()).Logger()
|
||||
|
||||
if !session.Profile().IsAdmin {
|
||||
h.logger.Debug().Str("session_id", session.ID()).Msg("is not the admin")
|
||||
logger.Debug().Msg("is not the admin")
|
||||
return nil
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue