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.
This commit is contained in:
Baptiste Assmann 2016-01-21 00:20:50 +01:00 committed by Willy Tarreau
parent b1af23ebea
commit 0821bb9ec0

View 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)