From 8d8eb33f55a2f62f00463e7402c81c0cc02bde0e Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Tue, 28 May 2013 14:37:51 +0200 Subject: [PATCH] Change logging of HTTP response --- src/http.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/http.c b/src/http.c index 2720c3c..ee60f8d 100644 --- a/src/http.c +++ b/src/http.c @@ -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) -- 1.7.10.4