[sr-dev] git:master:1a059109: usrloc: log details of contact when inserting in db failes
Daniel-Constantin Mierla
miconda at gmail.com
Wed Nov 18 14:43:31 CET 2015
Module: kamailio
Branch: master
Commit: 1a05910912fbf9baaf821cc30fac7485c1e67622
URL: https://github.com/kamailio/kamailio/commit/1a05910912fbf9baaf821cc30fac7485c1e67622
Author: Daniel-Constantin Mierla <miconda at gmail.com>
Committer: Daniel-Constantin Mierla <miconda at 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/1a05910912fbf9baaf821cc30fac7485c1e67622.diff
Patch: https://github.com/kamailio/kamailio/commit/1a05910912fbf9baaf821cc30fac7485c1e67622.patch
---
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;
}
More information about the sr-dev
mailing list