Module: kamailio
Branch: master
Commit: 301793c4f10c860e263a243863f7b833ba3bb0f6
URL:
https://github.com/kamailio/kamailio/commit/301793c4f10c860e263a243863f7b83…
Author: Juha Heinanen <jh(a)tutpro.com>
Committer: Juha Heinanen <jh(a)tutpro.com>
Date: 2015-05-21T14:28:57+03:00
modules/db_mysql: include (start of) mysql query to async query error message
---
Modified: modules/db_mysql/km_dbase.c
---
Diff:
https://github.com/kamailio/kamailio/commit/301793c4f10c860e263a243863f7b83…
Patch:
https://github.com/kamailio/kamailio/commit/301793c4f10c860e263a243863f7b83…
---
diff --git a/modules/db_mysql/km_dbase.c b/modules/db_mysql/km_dbase.c
index fd576ff..a323be2 100644
--- a/modules/db_mysql/km_dbase.c
+++ b/modules/db_mysql/km_dbase.c
@@ -140,7 +140,8 @@ void db_mysql_async_exec_task(void *param)
return;
}
if(db_mysql_submit_query(dbc, &p[1])<0) {
- LM_ERR("failed to execute query on async worker\n");
+ LM_ERR("failed to execute query [%.*s] on async worker\n",
+ (p[1].len>100)?100:p[1].len, p[1].s);
}
db_mysql_close(dbc);
}