From 480d954608a96870d651ec7e91ac63cb29a4a076 Mon Sep 17 00:00:00 2001 From: Sebastian Hammer Date: Mon, 1 Dec 2008 15:22:09 +0000 Subject: [PATCH] Added logging of CQL/PQF queries for ZOOM-based code --- src/client.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/client.c b/src/client.c index ad63e3c..ff3c0fb 100644 --- a/src/client.c +++ b/src/client.c @@ -456,13 +456,17 @@ void client_start_search(struct client *cl) if (cl->cqlquery) { + yaz_log(YLOG_LOG, "Search %s CQL: %s", sdb->database->url, cl->cqlquery); ZOOM_query q = ZOOM_query_create(); ZOOM_query_cql(q, cl->cqlquery); rs = ZOOM_connection_search(link, q); ZOOM_query_destroy(q); } else + { + yaz_log(YLOG_LOG, "Search %s PQF: %s", sdb->database->url, cl->pquery); rs = ZOOM_connection_search_pqf(link, cl->pquery); + } connection_set_resultset(co, rs); connection_continue(co); } -- 1.7.10.4