From 706412c0acc49a7be7cebdfaaa52b43171e0708b Mon Sep 17 00:00:00 2001 From: "Jibon L. Costa" Date: Mon, 30 Sep 2024 12:06:45 +0200 Subject: [PATCH] typo --- pkg/models/nats_system.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/models/nats_system.go b/pkg/models/nats_system.go index 5033d3a1..0bdf7c5e 100644 --- a/pkg/models/nats_system.go +++ b/pkg/models/nats_system.go @@ -16,13 +16,13 @@ func (m *NatsModel) RenewPNMToken(roomId, userId, token string) { // as renew request is coming from nats, so it should be secure token, err := m.authModel.RenewPNMToken(token, false) if err != nil { - log.Errorln(err) + log.Errorln(fmt.Errorf("error renewing pnm token for %s; roomId: %s; msg: %s", userId, roomId, err.Error())) return } err = m.natsService.BroadcastSystemEventToRoom(plugnmeet.NatsMsgServerToClientEvents_RESP_RENEW_PNM_TOKEN, roomId, token, &userId) if err != nil { - log.Errorln(fmt.Errorf("error renewing pnm token for %s; roomId: %s; msg: %s", userId, roomId, err.Error())) + log.Errorln(fmt.Errorf("error sending RESP_RENEW_PNM_TOKEN event for %s; roomId: %s; msg: %s", userId, roomId, err.Error())) } }