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