mirror of
https://gitee.com/wangbin579/cetus.git
synced 2024-11-30 02:47:35 +08:00
Add log for tracing session sqls
This commit is contained in:
parent
f1ed38e030
commit
810828350c
@ -1142,6 +1142,9 @@ process_query_or_stmt_prepare(network_mysqld_con *con, proxy_plugin_con_t *st,
|
|||||||
|
|
||||||
sql_context_t *context = st->sql_context;
|
sql_context_t *context = st->sql_context;
|
||||||
sql_context_parse_len(context, con->orig_sql);
|
sql_context_parse_len(context, con->orig_sql);
|
||||||
|
|
||||||
|
g_debug("%s process query:%s", G_STRLOC, con->orig_sql->str);
|
||||||
|
|
||||||
if (context->rc == PARSE_SYNTAX_ERR) {
|
if (context->rc == PARSE_SYNTAX_ERR) {
|
||||||
char *msg = context->message;
|
char *msg = context->message;
|
||||||
g_message("%s SQL syntax error: %s. while parsing: %s", G_STRLOC, msg, con->orig_sql->str);
|
g_message("%s SQL syntax error: %s. while parsing: %s", G_STRLOC, msg, con->orig_sql->str);
|
||||||
|
Loading…
Reference in New Issue
Block a user