Skip to content

Commit

Permalink
只过滤监控检查的错误
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaoleizi2016 committed Sep 11, 2023
1 parent 56ecc45 commit 3d975a5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/obproxy/proxy/mysql/ob_mysql_sm.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9530,7 +9530,7 @@ inline void ObMysqlSM::update_monitor_log()
is_slow_query = true;
_OBPROXY_SLOW_LOG(WARN, MONITOR_LOG_FORMAT, MONITOR_LOG_PARAM);
}
if (is_error_resp && OB_MYSQL_COM_LOGIN != request_cmd) {
if (is_error_resp && !(OB_MYSQL_COM_LOGIN == request_cmd && OB_CONNECT_ERROR == trans_state_.mysql_errcode_)) {
_OBPROXY_ERROR_LOG(WARN, MONITOR_ERROR_LOG_FORMAT, MONITOR_ERROR_LOG_PARAM);
}
}
Expand Down

0 comments on commit 3d975a5

Please sign in to comment.