GFS logs HTTP requests
authorAdam Dickmeiss <adam@indexdata.dk>
Fri, 18 Sep 2009 10:33:54 +0000 (12:33 +0200)
committerAdam Dickmeiss <adam@indexdata.dk>
Fri, 18 Sep 2009 10:33:54 +0000 (12:33 +0200)
src/seshigh.c

index 7e08220..15535b1 100644 (file)
@@ -1690,6 +1690,7 @@ static void process_http_request(association *assoc, request *req)
     int num_diagnostic = 0;
     const char *host = z_HTTP_header_lookup(hreq->headers, "Host");
 
+    yaz_log(log_request, "%s %s HTTP/%s", hreq->method, hreq->path, hreq->version);
     if (!control_association(assoc, host, 0))
     {
         p = z_get_HTTP_Response(o, 404);