var splits = strings.Split(s, "=")
if subId, err := strconv.ParseInt(splits[1], 10, 64); err == nil {
xapp.Logger.Debug("RemoveSubscriptionFromSdl() called. subId = %v", subId)
- c.RemoveSubscriptionFromSdl(uint32(subId))
+ err := c.RemoveSubscriptionFromSdl(uint32(subId))
+ if err != nil {
+ xapp.Logger.Error("c.RemoveSubscriptionFromSdl failure: %s", err.Error())
+ }
return
}
}
// Get all E2Nodes in subscription manager
xapp.Logger.Debug("GetAllE2Nodes() called")
- w.Write(c.e2IfState.GetE2NodesJson())
+ _, err := w.Write(c.e2IfState.GetE2NodesJson())
+ if err != nil {
+ xapp.Logger.Error("w.Write failure: %s", err.Error())
+ }
}
func (c *Control) GetAllE2NodeRestSubscriptions(w http.ResponseWriter, r *http.Request) {