From: willy tarreau Date: Sun, 21 May 2006 20:08:00 +0000 (+0200) Subject: [MINOR] display "" in the logs for statistics access. X-Git-Tag: v1.2.14~2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=8cd311407e778a2507cd5a49e0c7361f67c84921;p=thirdparty%2Fhaproxy.git [MINOR] display "" in the logs for statistics access. --- diff --git a/haproxy.c b/haproxy.c index 4910b5e568..0abe937b75 100644 --- a/haproxy.c +++ b/haproxy.c @@ -3482,7 +3482,9 @@ void sess_log(struct session *s) { uri = (log & LW_REQ) ? s->logs.uri ? s->logs.uri : "" : ""; pxid = p->id; - srv = (p->to_log & LW_SVID) ? (s->srv != NULL) ? s->srv->id : "" : "-"; + srv = (p->to_log & LW_SVID) ? + (s->data_source != DATA_SRC_STATS) ? + (s->srv != NULL) ? s->srv->id : "" : "" : "-"; tm = localtime(&s->logs.tv_accept.tv_sec); if (p->to_log & LW_REQ) {