Module: kamailio
Branch: master
Commit: ce41c40055139b3eb5a44d940585457e48830724
URL:
https://github.com/kamailio/kamailio/commit/ce41c40055139b3eb5a44d940585457…
Author: Olle E. Johansson <oej(a)edvina.net>
Committer: Olle E. Johansson <oej(a)edvina.net>
Date: 2015-01-17T15:06:06+01:00
domain Add \n at end of LM_ERR message, add LM_DBG for db_url
---
Modified: modules/domain/domain.c
Modified: modules/domain/domain_mod.c
---
Diff:
https://github.com/kamailio/kamailio/commit/ce41c40055139b3eb5a44d940585457…
Patch:
https://github.com/kamailio/kamailio/commit/ce41c40055139b3eb5a44d940585457…
---
diff --git a/modules/domain/domain.c b/modules/domain/domain.c
index 3fd7472..19943ab 100644
--- a/modules/domain/domain.c
+++ b/modules/domain/domain.c
@@ -40,7 +40,7 @@ static db_func_t domain_dbf;
int domain_db_bind(const str* db_url)
{
if (db_bind_mod(db_url, &domain_dbf )) {
- LM_ERR("Cannot bind to database module!");
+ LM_ERR("Cannot bind to database module!\n");
return -1;
}
return 0;
diff --git a/modules/domain/domain_mod.c b/modules/domain/domain_mod.c
index 6c86c5a..81f3091 100644
--- a/modules/domain/domain_mod.c
+++ b/modules/domain/domain_mod.c
@@ -176,7 +176,8 @@ static int mod_init(void)
/* Bind database */
if (domain_db_bind(&db_url)) {
- LM_ERR("no database module found\n");
+ LM_DBG("Usign db_url [%.*s]\n", db_url.len, db_url.s);
+ LM_ERR("no database module found. Have you configure thed \"db_url\"
modparam properly?\n");
return -1;
}