Skip to content

Commit

Permalink
Merge pull request #2912 from lemenkov/tracer_verbosity
Browse files Browse the repository at this point in the history
tracer: Be more verbose when cannot start trace
  • Loading branch information
bogdan-iancu committed Oct 25, 2022
2 parents 14d900f + 0b136fc commit 82dabe2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/tracer/tracer.c
Original file line number Diff line number Diff line change
Expand Up @@ -2017,15 +2017,15 @@ static int trace_w(struct sip_msg *msg, tlist_elem_p list,
msg->REQ_METHOD == METHOD_INVITE && !trace_has_totag(msg)) {
LM_DBG("tracing dialog!\n");
} else if (trace_flags == TRACE_DIALOG) {
LM_DBG("can't trace dialog! Will try to trace transaction\n");
LM_WARN("can't trace dialog! Will try to trace transaction\n");
trace_flags = TRACE_TRANSACTION;
}

if (trace_flags == TRACE_TRANSACTION &&
msg->first_line.type == SIP_REQUEST) {
LM_DBG("tracing transaction!\n");
} else if (trace_flags == TRACE_TRANSACTION) {
LM_DBG("can't trace transaction! Will trace only this message!\n");
LM_WARN("can't trace transaction! Will trace only this message!\n");
trace_flags = TRACE_MESSAGE;
}

Expand Down

0 comments on commit 82dabe2

Please sign in to comment.