Module: kamailio
Branch: master
Commit: d3bf6422c004c723a626cae569710b909e8b5315
URL:
https://github.com/kamailio/kamailio/commit/d3bf6422c004c723a626cae569710b9…
Author: Luis Azedo <luis(a)2600hz.com>
Committer: Luis Azedo <luis(a)2600hz.com>
Date: 2017-03-03T17:35:22Z
db_text : less intrusive log
---
Modified: src/modules/db_text/dbt_base.c
Modified: src/modules/db_text/dbt_lib.c
---
Diff:
https://github.com/kamailio/kamailio/commit/d3bf6422c004c723a626cae569710b9…
Patch:
https://github.com/kamailio/kamailio/commit/d3bf6422c004c723a626cae569710b9…
---
diff --git a/src/modules/db_text/dbt_base.c b/src/modules/db_text/dbt_base.c
index 425d351..860d16e 100644
--- a/src/modules/db_text/dbt_base.c
+++ b/src/modules/db_text/dbt_base.c
@@ -89,7 +89,6 @@ db1_con_t* dbt_init(const str* _sqlurl)
memset(_res, 0, sizeof(db1_con_t) + sizeof(dbt_con_t));
_res->tail = (unsigned long)((char*)_res+sizeof(db1_con_t));
- LM_INFO("using database at: %.*s\n", _s.len, _s.s);
DBT_CON_CONNECTION(_res) = dbt_cache_get_db(&_s);
if (!DBT_CON_CONNECTION(_res))
{
diff --git a/src/modules/db_text/dbt_lib.c b/src/modules/db_text/dbt_lib.c
index 8177ebd..3a1ec79 100644
--- a/src/modules/db_text/dbt_lib.c
+++ b/src/modules/db_text/dbt_lib.c
@@ -143,7 +143,7 @@ dbt_cache_p dbt_cache_get_db(str *_s)
LM_ERR("database [%.*s] does not exists!\n", _s->len, _s->s);
goto done;
}
- LM_DBG("new db!\n");
+ LM_INFO("using database at: %.*s\n", _s->len, _s->s);
_dcache = (dbt_cache_p)shm_malloc(sizeof(dbt_cache_t));
if(!_dcache)