Module: kamailio
Branch: master
Commit: 0ab124af340cf01ceb46cb5d8f8acbf69dea3a95
URL:
https://github.com/kamailio/kamailio/commit/0ab124af340cf01ceb46cb5d8f8acbf…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2016-03-11T01:26:40+01:00
Merge pull request #540 from linuxmaniac/vseva/mysql_warning
db_mysql: change log level from WARN to INFO for ping checks
---
Modified: modules/db_mysql/km_dbase.c
---
Diff:
https://github.com/kamailio/kamailio/commit/0ab124af340cf01ceb46cb5d8f8acbf…
Patch:
https://github.com/kamailio/kamailio/commit/0ab124af340cf01ceb46cb5d8f8acbf…
---
diff --git a/modules/db_mysql/km_dbase.c b/modules/db_mysql/km_dbase.c
index 2b3d1c9..5d18305 100644
--- a/modules/db_mysql/km_dbase.c
+++ b/modules/db_mysql/km_dbase.c
@@ -82,7 +82,7 @@ static int db_mysql_submit_query(const db1_con_t* _h, const str* _s)
if ((t - CON_TIMESTAMP(_h)) > my_ping_interval) {
for (i=0; i < (db_mysql_auto_reconnect ? 3 : 1); i++) {
if (mysql_ping(CON_CONNECTION(_h))) {
- LM_WARN("driver error on ping: %s\n", mysql_error(CON_CONNECTION(_h)));
+ LM_INFO("driver error on ping: %s\n", mysql_error(CON_CONNECTION(_h)));
counter_inc(mysql_cnts_h.driver_err);
} else {
break;