]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
MINOR: Remove trailing '.' from email alert messages
authorSimon Horman <horms@verge.net.au>
Fri, 6 Feb 2015 02:11:56 +0000 (11:11 +0900)
committerWilly Tarreau <w@1wt.eu>
Fri, 6 Feb 2015 06:59:58 +0000 (07:59 +0100)
This removes the trailing '.' from both the header and the body of email
alerts.

The main motivation for this change is to make the format of email alerts
generated from srv_set_stopped() consistent with those generated from
set_server_check_status().

Signed-off-by: Simon Horman <horms@verge.net.au>
src/server.c

index 6acd332926573c3a5c7afedbedc4aca6a58face7..4458642e066d33440d2659e972215543a520242f 100644 (file)
@@ -255,7 +255,7 @@ void srv_set_stopped(struct server *s, const char *reason)
                     "%sServer %s/%s is DOWN", s->flags & SRV_F_BACKUP ? "Backup " : "",
                     s->proxy->id, s->id);
 
-       send_email_alert(s, "%s.", trash.str);
+       send_email_alert(s, "%s", trash.str);
        srv_append_status(&trash, s, reason, xferred, 0);
        Warning("%s.\n", trash.str);