Commit Diff


commit - 98827de5abbbe65c23f9654914edafb448b29bd9
commit + b5963536c85df0d8aa80df7ce8fd223b5d9d29e6
blob - 8f0fd3772518670fde0e69fd2d14f271916eff53
blob + 09291694acc16f7c430ff1e9c066dd7eb8689f3d
--- gmid.c
+++ gmid.c
@@ -137,9 +137,10 @@ log_request(struct client *c, int code, const char *me
 		 * 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;
blob - 05ef4b972dd00ae7eaecbc517aa6860c494a3051
blob + 57d3b9ca738cb506ded448ea595b96ae90217941
--- gmid.conf.5
+++ gmid.conf.5
@@ -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