Module: kamailio
Branch: master
Commit: 1a05910912fbf9baaf821cc30fac7485c1e67622
URL:
https://github.com/kamailio/kamailio/commit/1a05910912fbf9baaf821cc30fac748…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2015-11-18T14:43:22+01:00
usrloc: log details of contact when inserting in db failes
---
Modified: modules/usrloc/ucontact.c
---
Diff:
https://github.com/kamailio/kamailio/commit/1a05910912fbf9baaf821cc30fac748…
Patch:
https://github.com/kamailio/kamailio/commit/1a05910912fbf9baaf821cc30fac748…
---
diff --git a/modules/usrloc/ucontact.c b/modules/usrloc/ucontact.c
index a645e42..68e0359 100644
--- a/modules/usrloc/ucontact.c
+++ b/modules/usrloc/ucontact.c
@@ -680,7 +680,8 @@ int db_insert_ucontact(ucontact_t* _c)
}
if (ul_dbf.insert(ul_dbh, keys, vals, nr_cols) < 0) {
- LM_ERR("inserting contact in db failed\n");
+ LM_ERR("inserting contact in db failed %.*s (%.*s)\n",
+ _c->aor->len, ZSW(_c->aor->s), _c->ruid.len, ZSW(_c->ruid.s));
return -1;
}