[sr-dev] need for more informative db query error message

Daniel-Constantin Mierla miconda at gmail.com
Wed May 20 11:51:28 CEST 2015



On 20/05/15 07:38, Juha Heinanen wrote:
> i saw these kind of error messages in syslog:
>
> May 20 00:32:56 proxy /usr/bin/sip-proxy[27601]: ERROR: db_mysql [km_dbase.c:123]: db_mysql_submit_query(): driver error on query: Lost connection to MySQL server during query
> May 20 00:32:56 proxy /usr/bin/sip-proxy[27601]: ERROR: db_mysql [km_dbase.c:145]: db_mysql_async_exec_task(): failed to execute query on async worker
>
> it would be nice of the error message would tell which query was in
> question.
>
perhaps the log in db_mysql_async_exec_task() can be easily extended to
print more details.

Cheers,
Daniel

-- 
Daniel-Constantin Mierla
http://twitter.com/#!/miconda - http://www.linkedin.com/in/miconda
Kamailio World Conference, May 27-29, 2015
Berlin, Germany - http://www.kamailioworld.com




More information about the sr-dev mailing list