From d03e2e1f046fd12908d0cbaaccb55a823770bfef Mon Sep 17 00:00:00 2001 From: Jibon Date: Tue, 1 Oct 2024 17:11:17 +0200 Subject: [PATCH] typo --- pkg/models/user_modify.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pkg/models/user_modify.go b/pkg/models/user_modify.go index 4b4c6934..52ad4d22 100644 --- a/pkg/models/user_modify.go +++ b/pkg/models/user_modify.go @@ -12,7 +12,7 @@ import ( func (m *UserModel) RemoveParticipant(r *plugnmeet.RemoveParticipantReq) error { status, err := m.natsService.GetRoomUserStatus(r.RoomId, r.UserId) if err != nil { - log.Errorln(fmt.Sprintf("error GetRoomUserStatus to %s; roomId: %s; msg: %s", r.GetRoomId(), r.GetUserId(), err)) + log.Errorln(fmt.Sprintf("error GetRoomUserStatus roomId %s; userId: %s; msg: %s", r.GetRoomId(), r.GetUserId(), err)) return err } @@ -28,20 +28,20 @@ func (m *UserModel) RemoveParticipant(r *plugnmeet.RemoveParticipantReq) error { // send notification to be disconnected err = m.natsService.BroadcastSystemEventToRoom(plugnmeet.NatsMsgServerToClientEvents_SESSION_ENDED, r.GetRoomId(), "notifications.room-disconnected-participant-removed", &r.UserId) if err != nil { - log.Errorln(fmt.Sprintf("error broadcasting SESSION_ENDED event to %s; roomId: %s; msg: %s", r.GetRoomId(), r.GetUserId(), err)) + log.Errorln(fmt.Sprintf("error broadcasting SESSION_ENDED event roomId %s; userId: %s; msg: %s", r.GetRoomId(), r.GetUserId(), err)) } // now remove from lk _, err = m.lk.RemoveParticipant(r.RoomId, r.UserId) if err != nil { - log.Errorln(fmt.Sprintf("error removing user from lk to %s; roomId: %s; msg: %s", r.GetRoomId(), r.GetUserId(), err)) + log.Errorln(fmt.Sprintf("error removing user from lk roomId %s; userId: %s; msg: %s", r.GetRoomId(), r.GetUserId(), err)) } // finally, check if requested to block as well as if r.BlockUser { _, err = m.natsService.AddUserToBlockList(r.RoomId, r.UserId) if err != nil { - log.Errorln(fmt.Sprintf("error AddUserToBlockList to %s; roomId: %s; msg: %s", r.GetRoomId(), r.GetUserId(), err)) + log.Errorln(fmt.Sprintf("error AddUserToBlockList roomId %s; userId: %s; msg: %s", r.GetRoomId(), r.GetUserId(), err)) } }