Change logging of HTTP response
authorAdam Dickmeiss <adam@indexdata.dk>
Tue, 28 May 2013 12:37:51 +0000 (14:37 +0200)
committerAdam Dickmeiss <adam@indexdata.dk>
Tue, 28 May 2013 12:37:51 +0000 (14:37 +0200)
src/http.c

index 2720c3c..ee60f8d 100644 (file)
@@ -840,9 +840,12 @@ void http_send_response(struct http_channel *ch)
     struct http_buf *hb;
 
     yaz_timing_stop(ch->yt);
-    yaz_log(YLOG_LOG, "Response: %6.5f %3.2f %3.2f",
-            yaz_timing_get_real(ch->yt), yaz_timing_get_user(ch->yt),
-            yaz_timing_get_sys(ch->yt));
+    yaz_log(YLOG_LOG, "Response: %6.5f %s%s%s",
+            yaz_timing_get_real(ch->yt),
+            ch->request->path,
+            *ch->request->search ? "?" : "",
+            ch->request->search);
+
     assert(rs);
     hb = http_serialize_response(ch, rs);
     if (!hb)