Skip to content

Commit

Permalink
Change Updating metadata for stmt NNN notification from warning to in…
Browse files Browse the repository at this point in the history
…fo so it can be supressed in log
  • Loading branch information
b.antonic committed Mar 25, 2024
1 parent 9d788c0 commit fd2b9c4
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion lib/MySQL_PreparedStatement.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit fd2b9c4

Please sign in to comment.