fix logs.

This commit is contained in:
Miroslav Šedivý 2021-03-14 00:12:32 +01:00
parent fb2078e1ff
commit 5101f0a9c3
2 changed files with 2 additions and 2 deletions

View File

@ -8,7 +8,7 @@ import (
func (h *MessageHandlerCtx) screenSet(session types.Session, payload *message.ScreenSize) error {
if !session.IsAdmin() {
h.logger.Debug().Msg("member not admin")
h.logger.Debug().Str("session_id", session.ID()).Msg("is not the admin")
return nil
}

View File

@ -19,7 +19,7 @@ func (h *MessageHandlerCtx) systemInit(session types.Session) error {
size := h.desktop.GetScreenSize()
if size == nil {
h.logger.Debug().Msg("could not get screen size")
h.logger.Warn().Msg("could not get screen size")
return nil
}