Customers are complaining because of this kind of messages:
proxy[XXX]: WARNING: db_mysql [km_dbase.c:85]: db_mysql_submit_query(): driver error on ping: Lost connection to MySQL server during query
Not really and error here, so lets put it on DBG level then You can view, comment on, or merge this pull request online at:
https://github.com/kamailio/kamailio/pull/540
-- Commit Summary --
* db_mysql: change log level from WARN to DBG for ping checks
-- File Changes --
M modules/db_mysql/km_dbase.c (2)
-- Patch Links --
https://github.com/kamailio/kamailio/pull/540.patch https://github.com/kamailio/kamailio/pull/540.diff
--- Reply to this email directly or view it on GitHub: https://github.com/kamailio/kamailio/pull/540
This is not a message that should appear too often and still useful to know if db connectivity doesn't stay up. Maybe warning is too much, rising various alarms of syslog monitoring tools, given that it can recover fine in such situation. However, maybe INFO should be used instead of DBG.
--- Reply to this email directly or view it on GitHub: https://github.com/kamailio/kamailio/pull/540#issuecomment-194941395
Merged #540.
--- Reply to this email directly or view it on GitHub: https://github.com/kamailio/kamailio/pull/540#event-585720606