From fd2b9c4755c1ed4a0e34df80ca075329fdff4be2 Mon Sep 17 00:00:00 2001 From: "b.antonic" Date: Fri, 22 Mar 2024 09:14:13 +0100 Subject: [PATCH] Change Updating metadata for stmt NNN notification from warning to info so it can be supressed in log --- lib/MySQL_PreparedStatement.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/lib/MySQL_PreparedStatement.cpp b/lib/MySQL_PreparedStatement.cpp index e9263a33d7..9417be4bce 100644 --- a/lib/MySQL_PreparedStatement.cpp +++ b/lib/MySQL_PreparedStatement.cpp @@ -418,7 +418,13 @@ void MySQL_STMT_Global_info::update_metadata(MYSQL_STMT *stmt) { } } if (need_refresh) { - proxy_warning("Updating metadata for stmt %lu , user %s, query %s\n", statement_id, username, query); + std::string s(query); + std::transform(s.begin(), s.end(), s.begin(), ::toupper); + if (s.rfind("EXPLAIN", 0) == 0) { + proxy_info("Updating metadata for stmt %lu , user %s, query %s\n", statement_id, username, query); + } else { + proxy_info("Updating metadata for stmt %lu , user %s, query %s\n", statement_id, username, query); + } // from here is copied from destructor if (num_columns) { uint16_t i;