From: Baptiste Assmann Date: Wed, 20 Jan 2016 23:20:50 +0000 (+0100) Subject: MINOR: server state: missing LF (\n) on error message printed when parsing server... X-Git-Tag: v1.7-dev2~143 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=0821bb9ec05abb7192c660963e4a055d151705f4;p=thirdparty%2Fhaproxy.git MINOR: server state: missing LF (\n) on error message printed when parsing server state file There is no LF characters printed at the end of the error message returned by the function when applying server state found in a file. --- diff --git a/src/server.c b/src/server.c index a76ca6b043..f465e16cec 100644 --- a/src/server.c +++ b/src/server.c @@ -2167,9 +2167,11 @@ static void srv_update_state(struct server *srv, int version, char **params) } out: - if (msg->len) + if (msg->len) { + chunk_appendf(msg, "\n"); Warning("server-state application failed for server '%s/%s'%s", srv->proxy->id, srv->id, msg->str); + } } /* This function parses all the proxies and only take care of the backends (since we're looking for server)