BUG/MINOR: log: Properly test connection retries to fix dontlog-normal option
The commit 731c8e6cf
("MINOR: stream: Simplify retries counter calculation")
introduced a regression. It broke the dontlog-normal option because the test
on the connection retries counter was not updated accordingly.
This patch should fix the issue #1754. It must be backported to 2.6.
This commit is contained in:
parent
82af3c684d
commit
a892b7f15f
|
@ -3074,8 +3074,7 @@ void strm_log(struct stream *s)
|
|||
/* if we don't want to log normal traffic, return now */
|
||||
err = (s->flags & SF_REDISP) ||
|
||||
((s->flags & SF_ERR_MASK) > SF_ERR_LOCAL) ||
|
||||
(((s->flags & SF_ERR_MASK) == SF_ERR_NONE) &&
|
||||
(s->conn_retries != s->be->conn_retries)) ||
|
||||
(((s->flags & SF_ERR_MASK) == SF_ERR_NONE) && s->conn_retries) ||
|
||||
((sess->fe->mode == PR_MODE_HTTP) && s->txn && s->txn->status >= 500);
|
||||
|
||||
if (!err && (sess->fe->options2 & PR_O2_NOLOGNORM))
|
||||
|
|
Loading…
Reference in New Issue