[sr-dev] git:4.3:dd4d1700: usrloc: log details of contact when inserting in db failes
Daniel-Constantin Mierla
miconda at gmail.com
Mon Nov 23 16:31:36 CET 2015
Module: kamailio
Branch: 4.3
Commit: dd4d1700a36c6d64590ad00ae8c60270d16c62c3
URL: https://github.com/kamailio/kamailio/commit/dd4d1700a36c6d64590ad00ae8c60270d16c62c3
Author: Daniel-Constantin Mierla <miconda at gmail.com>
Committer: Daniel-Constantin Mierla <miconda at gmail.com>
Date: 2015-11-23T16:25:32+01:00
usrloc: log details of contact when inserting in db failes
(cherry picked from commit 1a05910912fbf9baaf821cc30fac7485c1e67622)
---
Modified: modules/usrloc/ucontact.c
---
Diff: https://github.com/kamailio/kamailio/commit/dd4d1700a36c6d64590ad00ae8c60270d16c62c3.diff
Patch: https://github.com/kamailio/kamailio/commit/dd4d1700a36c6d64590ad00ae8c60270d16c62c3.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