From: Simon Horman Date: Thu, 30 Apr 2015 04:10:33 +0000 (+0900) Subject: MEDIUM: Lower priority of email alerts for log-health-checks messages X-Git-Tag: v1.6-dev2~172 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7ea9be012d9d76752cfbba6c94b3672601716c4b;p=thirdparty%2Fhaproxy.git MEDIUM: Lower priority of email alerts for log-health-checks messages Lower the priority of email alerts for log-health-checks messages from LOG_NOTICE to LOG_INFO. This is to allow set-ups with log-health-checks enabled to disable email for health check state changes while leaving other email alerts enabled. In order for email alerts to be sent for health check state changes "log-health-checks" needs to be set and "email-alert level" needs to be 'info' or lower. "email-alert mailers" and "email-alert to" settings are also required in order for any email alerts to be sent. A follow-up patch will document the above. Signed-off-by: Simon Horman --- diff --git a/src/checks.c b/src/checks.c index 8a0231deb0..32c992195e 100644 --- a/src/checks.c +++ b/src/checks.c @@ -316,7 +316,7 @@ static void set_server_check_status(struct check *check, short status, const cha Warning("%s.\n", trash.str); send_log(s->proxy, LOG_NOTICE, "%s.\n", trash.str); - send_email_alert(s, LOG_NOTICE, "%s", trash.str); + send_email_alert(s, LOG_INFO, "%s", trash.str); } }