mirror of
http://git.haproxy.org/git/haproxy.git/
synced 2024-12-16 16:34:42 +00:00
MEDIUM: Log agent fail, stopped or down as info
In the case where an agent check returns fail, stopped or down, log this as info when logging the server status along with any trailing message returned by the agent after fail, stopped or down. Previously only the trailing message was logged as info and if omitted no info was logged. Signed-off-by: Simon Horman <horms@verge.net.au>
This commit is contained in:
parent
d858306ddb
commit
80fefaeb57
@ -1010,10 +1010,7 @@ static void event_srv_chk_r(struct connection *conn)
|
|||||||
*/
|
*/
|
||||||
if (end[0] == '\0' || end[0] == ' ' || end[0] == '\t') {
|
if (end[0] == '\0' || end[0] == ' ' || end[0] == '\t') {
|
||||||
status = HCHK_STATUS_L7STS;
|
status = HCHK_STATUS_L7STS;
|
||||||
/* Skip over leading blanks */
|
desc = check->bi->data;
|
||||||
while (end[0] != '\0' && (end[0] == ' ' || end[0] == '\t'))
|
|
||||||
end++;
|
|
||||||
desc = end;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user