fix logs, unified session_id.

This commit is contained in:
Miroslav Šedivý 2021-03-13 23:27:28 +01:00
parent cacdd9e20a
commit d83e04e7ec
10 changed files with 37 additions and 40 deletions

View file

@ -7,12 +7,12 @@ import (
func (h *MessageHandlerCtx) clipboardSet(session types.Session, payload *message.ClipboardData) error {
if !session.CanAccessClipboard() {
h.logger.Debug().Str("id", session.ID()).Msg("cannot access clipboard")
h.logger.Debug().Str("session_id", session.ID()).Msg("cannot access clipboard")
return nil
}
if !session.IsHost() {
h.logger.Debug().Str("id", session.ID()).Msg("is not the host")
h.logger.Debug().Str("session_id", session.ID()).Msg("is not the host")
return nil
}