[sr-dev] git:master:caaa8650: Merge pull request #1929 from kamailio/usrloc_sync-better-warn-log

GitHub noreply at github.com
Thu Apr 18 14:01:07 CEST 2019


Module: kamailio
Branch: master
Commit: caaa8650c2882eb665dd97b4fa4518ee0f27c759
URL: https://github.com/kamailio/kamailio/commit/caaa8650c2882eb665dd97b4fa4518ee0f27c759

Author: Charles Chance <charles.chance at sipcentric.com>
Committer: GitHub <noreply at github.com>
Date: 2019-04-18T13:01:02+01:00

Merge pull request #1929 from kamailio/usrloc_sync-better-warn-log

dmq_usrloc: output AoR on warning message

---

Modified: src/modules/dmq_usrloc/usrloc_sync.c

---

Diff:  https://github.com/kamailio/kamailio/commit/caaa8650c2882eb665dd97b4fa4518ee0f27c759.diff
Patch: https://github.com/kamailio/kamailio/commit/caaa8650c2882eb665dd97b4fa4518ee0f27c759.patch

---

diff --git a/src/modules/dmq_usrloc/usrloc_sync.c b/src/modules/dmq_usrloc/usrloc_sync.c
index 1a7eef0ab8..5f7b55fb94 100644
--- a/src/modules/dmq_usrloc/usrloc_sync.c
+++ b/src/modules/dmq_usrloc/usrloc_sync.c
@@ -144,7 +144,7 @@ static int delete_contact(str aor, ucontact_info_t* ci)
 	/* it locks the udomain on success */
 	if (dmq_ul.get_urecord_by_ruid(_d, dmq_ul.get_aorhash(&aor),
 				&ci->ruid, &r, &c) != 0) {
-		LM_WARN("AOR/Contact not found\n");
+		LM_WARN("AOR/Contact ['%.*s'] not found\n", aor.len, aor.s);
 		return -1;
 	}
 	if (dmq_ul.delete_ucontact(r, c) != 0) {




More information about the sr-dev mailing list