mirror of
https://github.com/m1k1o/neko.git
synced 2024-07-24 14:40:50 +12:00
fix logs.
This commit is contained in:
parent
fb2078e1ff
commit
5101f0a9c3
@ -8,7 +8,7 @@ import (
|
|||||||
|
|
||||||
func (h *MessageHandlerCtx) screenSet(session types.Session, payload *message.ScreenSize) error {
|
func (h *MessageHandlerCtx) screenSet(session types.Session, payload *message.ScreenSize) error {
|
||||||
if !session.IsAdmin() {
|
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
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -19,7 +19,7 @@ func (h *MessageHandlerCtx) systemInit(session types.Session) error {
|
|||||||
|
|
||||||
size := h.desktop.GetScreenSize()
|
size := h.desktop.GetScreenSize()
|
||||||
if size == nil {
|
if size == nil {
|
||||||
h.logger.Debug().Msg("could not get screen size")
|
h.logger.Warn().Msg("could not get screen size")
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user