From ce41c40055139b3eb5a44d940585457e48830724 Mon Sep 17 00:00:00 2001 From: "Olle E. Johansson" Date: Sat, 17 Jan 2015 14:43:00 +0100 Subject: [PATCH] domain Add \n at end of LM_ERR message, add LM_DBG for db_url --- modules/domain/domain.c | 2 +- modules/domain/domain_mod.c | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/modules/domain/domain.c b/modules/domain/domain.c index 3fd747271c8..19943ab20a6 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 6c86c5a043a..81f3091cf76 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; }