mirror of
http://git.haproxy.org/git/haproxy.git/
synced 2025-01-10 16:00:08 +00:00
MINOR cfgparse: Correct the mailer warning text to show the right names to the user
This commit is contained in:
parent
f1650a8adf
commit
8669e971a3
@ -7308,9 +7308,9 @@ int check_config_validity()
|
|||||||
if (curproxy->email_alert.set) {
|
if (curproxy->email_alert.set) {
|
||||||
if (!(curproxy->email_alert.mailers.name && curproxy->email_alert.from && curproxy->email_alert.to)) {
|
if (!(curproxy->email_alert.mailers.name && curproxy->email_alert.from && curproxy->email_alert.to)) {
|
||||||
Warning("config : 'email-alert' will be ignored for %s '%s' (the presence any of "
|
Warning("config : 'email-alert' will be ignored for %s '%s' (the presence any of "
|
||||||
"'email-alert from', 'email-alert level' 'email-alert mailer', "
|
"'email-alert from', 'email-alert level' 'email-alert mailers', "
|
||||||
"'email-alert hostname', or 'email-alert to' "
|
"'email-alert myhostname', or 'email-alert to' "
|
||||||
"requrires each of 'email-alert from', 'email-alert mailer' and 'email-alert' "
|
"requires each of 'email-alert from', 'email-alert mailers' and 'email-alert to' "
|
||||||
"to be present).\n",
|
"to be present).\n",
|
||||||
proxy_type_str(curproxy), curproxy->id);
|
proxy_type_str(curproxy), curproxy->id);
|
||||||
err_code |= ERR_WARN;
|
err_code |= ERR_WARN;
|
||||||
|
Loading…
Reference in New Issue
Block a user