From 8da76fcc177d683e20e601e2549625bfafead394 Mon Sep 17 00:00:00 2001 From: Ajay Lotan Thakur <thakur.ajay@gmail.com> Date: Thu, 23 Nov 2023 16:32:00 -0700 Subject: [PATCH] Update log. Helps during debugging. --- proto/server/configEvtHandler.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/proto/server/configEvtHandler.go b/proto/server/configEvtHandler.go index be8375ee..d3a23691 100644 --- a/proto/server/configEvtHandler.go +++ b/proto/server/configEvtHandler.go @@ -445,15 +445,16 @@ func Config5GUpdateHandle(confChan chan *Update5GSubscriberMsg) { switch confData.Msg.MsgType { case configmodels.Sub_data: rwLock.RLock() - logger.WebUILog.Debugln("Insert/Update AuthenticationSubscription") //check this Imsi is part of any of the devicegroup imsi := strings.ReplaceAll(confData.Msg.Imsi, "imsi-", "") if confData.Msg.MsgMethod != configmodels.Delete_op { + logger.WebUILog.Debugln("Insert/Update AuthenticationSubscription ", imsi) filter := bson.M{"ueId": confData.Msg.Imsi} authDataBsonA := toBsonM(confData.Msg.AuthSubData) authDataBsonA["ueId"] = confData.Msg.Imsi RestfulAPIPost(authSubsDataColl, filter, authDataBsonA) } else { + logger.WebUILog.Debugln("Insert/Update AuthenticationSubscription delete ", imsi) filter := bson.M{"ueId": "imsi-" + imsi} RestfulAPIDeleteOne(authSubsDataColl, filter) }