- subDelReq, err := c.UnpackSubscriptionDeleteRequest(payload)
- if err != nil {
- return make([]byte, 0), fmt.Errorf("PackSubDelRespFromSubDelReq: SubDelReq unpack failed: %s", err.Error())
+ var prefixString string
+ var errorInfo ErrorInfo
+ var actionNotAdmittedString string
+ if len(actionNotAdmittedList.Items) > 0 {
+ if msgType == xapp.RIC_SUB_RESP {
+ prefixString = "RICSubscriptionResponse partially accepted:"
+ c.UpdateCounter(cPartialSubRespFromE2)
+ } else if msgType == xapp.RIC_SUB_FAILURE {
+ prefixString = "RICSubscriptionFailure:"
+ }
+ jsonActionNotAdmittedList, err := json.Marshal(actionNotAdmittedList.Items)
+ if err != nil {
+ actionNotAdmittedString = "ActionNotAdmittedList > 0. Submgr json.Marshal error"
+ xapp.Logger.Error("CheckActionNotAdmittedList() json.Marshal error %s", err.Error())
+ } else {
+ actionNotAdmittedString = "ActionNotAdmittedList: " + string(jsonActionNotAdmittedList)
+ }