mirror of https://github.com/omar-polo/gmid.git
change the 'condensed' style to include the size of the request too
will be used in the future to log how much byte a titan request uploaded.
This commit is contained in:
parent
98827de5ab
commit
b5963536c8
5
gmid.c
5
gmid.c
|
@ -137,9 +137,10 @@ log_request(struct client *c, int code, const char *meta)
|
|||
* XXX the first '-' is the remote user name, we
|
||||
* could use the client cert for it.
|
||||
*
|
||||
* XXX it should log the size of the response
|
||||
* XXX it should log the size of the request and
|
||||
* response.
|
||||
*/
|
||||
ec = asprintf(&fmted, "%s %s - %s %s 0 %d %s", rfc3339,
|
||||
ec = asprintf(&fmted, "%s %s - %s %s 0 0 %d %s", rfc3339,
|
||||
c->rhost, *c->domain == '\0' ? c->iri.host : c->domain,
|
||||
b, code, meta);
|
||||
break;
|
||||
|
|
|
@ -176,8 +176,8 @@ format since 2.0.
|
|||
Each line is formatted as follows: RFC 3339 date time,
|
||||
remote IP address, Common Name of the client certificate
|
||||
.Pq if provided, '-' otherwise ,
|
||||
the matching host name, the request URI, the size of the response,
|
||||
the response code and meta.
|
||||
the matching host name, the request URI, the size of the request,
|
||||
the size of the response, the response code and meta.
|
||||
.It Ic legacy
|
||||
The pre-2.0 gmid native format.
|
||||
Each line is formatted as follows: the remote IP address and port, the
|
||||
|
|
Loading…
Reference in New Issue