From 810828350c9d98370d23b6c0f0833f88747b0b73 Mon Sep 17 00:00:00 2001 From: wangbin579 Date: Tue, 7 Aug 2018 12:17:13 +0800 Subject: [PATCH] Add log for tracing session sqls --- plugins/proxy/proxy-plugin.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/plugins/proxy/proxy-plugin.c b/plugins/proxy/proxy-plugin.c index 32bc573..7d74290 100644 --- a/plugins/proxy/proxy-plugin.c +++ b/plugins/proxy/proxy-plugin.c @@ -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_parse_len(context, con->orig_sql); + + g_debug("%s process query:%s", G_STRLOC, con->orig_sql->str); + if (context->rc == PARSE_SYNTAX_ERR) { char *msg = context->message; g_message("%s SQL syntax error: %s. while parsing: %s", G_STRLOC, msg, con->orig_sql->str);