Skip to content

Commit

Permalink
Update log. Helps during debugging.
Browse files Browse the repository at this point in the history
  • Loading branch information
thakurajayL committed Nov 24, 2023
1 parent 17ee7e1 commit a93de99
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion proto/server/configEvtHandler.go
Original file line number Diff line number Diff line change
Expand Up @@ -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.Errorln("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.Errorln("Insert/Update AuthenticationSubscription delete ", imsi)
filter := bson.M{"ueId": "imsi-" + imsi}
RestfulAPIDeleteOne(authSubsDataColl, filter)
}
Expand Down

0 comments on commit a93de99

Please sign in to comment.