[sr-dev] need for more informative db query error message
Juha Heinanen
jh at tutpro.com
Thu May 21 08:35:12 CEST 2015
Daniel-Constantin Mierla writes:
> perhaps the log in db_mysql_async_exec_task() can be easily extended to
> print more details.
looks like it. i made the change below. is it ok to commit the diff?
-- juha
*** /usr/src/orig/kamailio/modules/db_mysql/km_dbase.c Mon May 4 10:34:34 2015
--- km_dbase.c Thu May 21 09:27:57 2015
***************
*** 140,146 ****
return;
}
if(db_mysql_submit_query(dbc, &p[1])<0) {
! LM_ERR("failed to execute query on async worker\n");
}
db_mysql_close(dbc);
}
--- 140,147 ----
return;
}
if(db_mysql_submit_query(dbc, &p[1])<0) {
! LM_ERR("failed to execute query [%.*s] on async worker\n",
! p[1].len, p[1].s);
}
db_mysql_close(dbc);
}
More information about the sr-dev
mailing list