From 79d82929a50a2cdeba66251f62e72dc0b48045ca Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9=20Canna=C3=B2?= Date: Fri, 26 Aug 2016 10:01:56 +0000 Subject: [PATCH] Changed severity of messages when node is shunned When a server is shunned because of errors, it is now logged as error When a server is shunned because of replication lag, it is now logged as warning --- lib/MySQL_HostGroups_Manager.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/MySQL_HostGroups_Manager.cpp b/lib/MySQL_HostGroups_Manager.cpp index d77d6aaf2..d18614dcb 100644 --- a/lib/MySQL_HostGroups_Manager.cpp +++ b/lib/MySQL_HostGroups_Manager.cpp @@ -163,7 +163,7 @@ void MySrvC::connect_error(int err_num) { } MyHGM->wrunlock(); if (_shu) { - proxy_info("Shunning server %s:%d with %u errors/sec. Shunning for %u seconds\n", address, port, connect_ERR_at_time_last_detected_error , mysql_thread___shun_recovery_time_sec); + proxy_error("Shunning server %s:%d with %u errors/sec. Shunning for %u seconds\n", address, port, connect_ERR_at_time_last_detected_error , mysql_thread___shun_recovery_time_sec); } } } @@ -878,7 +878,7 @@ void MySQL_HostGroups_Manager::replication_lag_action(int _hid, char *address, u // || (current_replication_lag>=0 && ((unsigned int)current_replication_lag > mysrvc->max_replication_lag)) ) { - proxy_info("Shunning server %s:%d with replication lag of %d second\n", address, port, current_replication_lag); + proxy_warning("Shunning server %s:%d with replication lag of %d second\n", address, port, current_replication_lag); mysrvc->status=MYSQL_SERVER_STATUS_SHUNNED_REPLICATION_LAG; } } else {