mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2025-09-25 07:41:36 +02:00
MINOR: log: don't check the stream-int's conn_retries if the stream is NULL
Let's simply forget the conn_retries when there is no stream since we haven't tried to connect yet.
This commit is contained in:
parent
e1809dfdaf
commit
abd71a5c2e
@ -2121,7 +2121,7 @@ int sess_build_logline(struct session *sess, struct stream *s, char *dst, size_t
|
|||||||
case LOG_FMT_RETRIES: // %rq
|
case LOG_FMT_RETRIES: // %rq
|
||||||
if (s->flags & SF_REDISP)
|
if (s->flags & SF_REDISP)
|
||||||
LOGCHAR('+');
|
LOGCHAR('+');
|
||||||
ret = ltoa_o((s->si[1].conn_retries>0) ?
|
ret = ltoa_o((s && s->si[1].conn_retries > 0) ?
|
||||||
(be->conn_retries - s->si[1].conn_retries) :
|
(be->conn_retries - s->si[1].conn_retries) :
|
||||||
be->conn_retries, tmplog, dst + maxsize - tmplog);
|
be->conn_retries, tmplog, dst + maxsize - tmplog);
|
||||||
if (ret == NULL)
|
if (ret == NULL)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user