Skip to content

Commit

Permalink
Adds logging for troubleshooting (to revert)
Browse files Browse the repository at this point in the history
  • Loading branch information
gruyaume committed Dec 12, 2023
1 parent e41eb44 commit 25dfaa8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions context/upf.go
Original file line number Diff line number Diff line change
Expand Up @@ -627,6 +627,9 @@ func (upf *UPF) isSupportSnssai(snssai *SNssai) bool {
func (upf *UPF) IsDnnConfigured(sDnn string) bool {
//iterate through slices and check if DNN is configured

logger.CtxLog.Infof("IsDnnConfigured - sDNN: %s", sDnn)
logger.CtxLog.Infof("IsDnnConfigured - upf.SNssaiInfos: %v", upf.SNssaiInfos)

for _, slice := range upf.SNssaiInfos {
for _, dnn := range slice.DnnList {
if dnn.Dnn == sDnn {
Expand Down
1 change: 1 addition & 0 deletions context/user_plane_information.go
Original file line number Diff line number Diff line change
Expand Up @@ -339,6 +339,7 @@ func (upi *UserPlaneInformation) InsertSmfUserPlaneNode(name string, node *facto
})
}
snssaiInfos = append(snssaiInfos, snssaiInfo)
logger.UPNodeLog.Infof("Inserted snssai info[%v] to UPF[%v]", snssaiInfo, upNode.NodeID)
}
upNode.UPF.SNssaiInfos = snssaiInfos
upi.UPFs[name] = upNode
Expand Down

0 comments on commit 25dfaa8

Please sign in to comment.