xact: Fix debug message printed when not needed

This commit is contained in:
Pau Espin 2023-12-20 20:20:21 +01:00 committed by Sukchan Lee
parent ab51ba9dd5
commit 75f32e07de
2 changed files with 12 additions and 13 deletions

View File

@ -859,11 +859,11 @@ int ogs_gtp1_xact_receive(
}
}
ogs_debug("[%d] Cannot find xact type %u from GTPv1 peer [%s]:%d",
xid, type, OGS_ADDR(&gnode->addr, buf), OGS_PORT(&gnode->addr));
if (!new)
if (!new) {
ogs_debug("[%d] Cannot find xact type %u from GTPv1 peer [%s]:%d",
xid, type, OGS_ADDR(&gnode->addr, buf), OGS_PORT(&gnode->addr));
new = ogs_gtp_xact_remote_create(gnode, 1, sqn);
}
ogs_assert(new);
ogs_debug("[%d] %s Receive peer [%s]:%d",
@ -947,12 +947,11 @@ int ogs_gtp_xact_receive(
}
}
ogs_debug("[%d] Cannot find xact type %u from GTPv2 peer [%s]:%d",
xid, type,
OGS_ADDR(&gnode->addr, buf), OGS_PORT(&gnode->addr));
if (!new)
if (!new) {
ogs_debug("[%d] Cannot find xact type %u from GTPv2 peer [%s]:%d",
xid, type, OGS_ADDR(&gnode->addr, buf), OGS_PORT(&gnode->addr));
new = ogs_gtp_xact_remote_create(gnode, 2, sqn);
}
ogs_assert(new);
ogs_debug("[%d] %s Receive peer [%s]:%d",

View File

@ -717,11 +717,11 @@ int ogs_pfcp_xact_receive(
}
}
ogs_debug("[%d] Cannot find new type %u from PFCP peer [%s]:%d",
xid, type, OGS_ADDR(&node->addr, buf), OGS_PORT(&node->addr));
if (!new)
if (!new) {
ogs_debug("[%d] Cannot find new type %u from PFCP peer [%s]:%d",
xid, type, OGS_ADDR(&node->addr, buf), OGS_PORT(&node->addr));
new = ogs_pfcp_xact_remote_create(node, sqn);
}
ogs_assert(new);
ogs_debug("[%d] %s Receive peer [%s]:%d",