mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2025-11-29 14:50:59 +01:00
[MINOR] display "<STATS>" in the logs for statistics access.
This commit is contained in:
parent
2b598cc00a
commit
8cd311407e
@ -3482,7 +3482,9 @@ void sess_log(struct session *s) {
|
|||||||
|
|
||||||
uri = (log & LW_REQ) ? s->logs.uri ? s->logs.uri : "<BADREQ>" : "";
|
uri = (log & LW_REQ) ? s->logs.uri ? s->logs.uri : "<BADREQ>" : "";
|
||||||
pxid = p->id;
|
pxid = p->id;
|
||||||
srv = (p->to_log & LW_SVID) ? (s->srv != NULL) ? s->srv->id : "<NOSRV>" : "-";
|
srv = (p->to_log & LW_SVID) ?
|
||||||
|
(s->data_source != DATA_SRC_STATS) ?
|
||||||
|
(s->srv != NULL) ? s->srv->id : "<NOSRV>" : "<STATS>" : "-";
|
||||||
|
|
||||||
tm = localtime(&s->logs.tv_accept.tv_sec);
|
tm = localtime(&s->logs.tv_accept.tv_sec);
|
||||||
if (p->to_log & LW_REQ) {
|
if (p->to_log & LW_REQ) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user