Skip to content

Commit

Permalink
Merge pull request #458 from kamailio/lazedo/presence_logs
Browse files Browse the repository at this point in the history
presence: additional info in logs
  • Loading branch information
lazedo committed Jan 4, 2016
2 parents c7e411e + ad168dd commit 59c1823
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions modules/presence/notify.c
Expand Up @@ -1612,11 +1612,12 @@ int send_notify_request(subs_t* subs, subs_t * watcher_subs,
}

LM_GEN1(pres_local_log_level,
"NOTIFY %.*s via %.*s on behalf of %.*s for event %.*s\n",
"NOTIFY %.*s via %.*s on behalf of %.*s for event %.*s : %.*s\n",
td->rem_uri.len, td->rem_uri.s, td->hooks.next_hop->len,
td->hooks.next_hop->s,
td->loc_uri.len, td->loc_uri.s, subs->event->name.len,
subs->event->name.s);
td->loc_uri.len, td->loc_uri.s,
subs->event->name.len, subs->event->name.s,
subs->callid.len, subs->callid.s);

ps_free_tm_dlg(td);

Expand Down Expand Up @@ -2859,7 +2860,13 @@ int process_dialogs(int round, int presence_winfo)

if (dialog->n > 1)
{
LM_ERR("multiple records found\n");
LM_ERR("multiple records found for %.*s, ci : %.*s, tt : %.*s, ft : %.*s, ev : %.*s\n",
sub.pres_uri.len, sub.pres_uri.s,
sub.callid.len, sub.callid.s,
sub.to_tag.len, sub.to_tag.s,
sub.from_tag.len, sub.from_tag.s,
ev_sname.len, ev_sname.s
);
goto delete_dialog;
}

Expand Down

0 comments on commit 59c1823

Please sign in to comment.