Skip to content

Commit

Permalink
tcpops: reworked some debug messages
Browse files Browse the repository at this point in the history
(cherry picked from commit 27e3b7f)
(cherry picked from commit c9fe59d)
  • Loading branch information
miconda committed Apr 29, 2024
1 parent a794cef commit cc7c586
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/modules/tcpops/tcpops.c
Original file line number Diff line number Diff line change
Expand Up @@ -249,6 +249,7 @@ static void tcpops_tcp_closed_run_route(tcp_closed_event_info_t *tev)
sr_kemi_eng_t *keng = NULL;
str *evname;

LM_DBG("event reason id: %d\n", tev->reason);
if(tcpops_event_callback.len > 0) {
rt = -1;
keng = sr_kemi_eng_get();
Expand All @@ -258,9 +259,10 @@ static void tcpops_tcp_closed_run_route(tcp_closed_event_info_t *tev)
}
} else {
rt = tcp_closed_routes[tev->reason];
LM_DBG("event reason id: %d rt: %d\n", tev->reason, rt);
if(rt == -1)
if(rt == -1) {
LM_DBG("event reason id: %d - event route not set\n", tev->reason);
return;
}
}

if(faked_msg_init() < 0) {
Expand Down

0 comments on commit cc7c586

Please sign in to comment.