]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
MINOR: server state: missing LF (\n) on error message printed when parsing server...
authorBaptiste Assmann <bedis9@gmail.com>
Wed, 20 Jan 2016 23:20:50 +0000 (00:20 +0100)
committerWilly Tarreau <w@1wt.eu>
Thu, 21 Jan 2016 06:40:51 +0000 (07:40 +0100)
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.

src/server.c

index a76ca6b04357aba45c840c602591c3fe44706eb1..f465e16cec9bf36ff1ec40c786701932bb0d343c 100644 (file)
@@ -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)