From: Sebastian Hammer Date: Mon, 1 Dec 2008 15:22:09 +0000 (+0000) Subject: Added logging of CQL/PQF queries for ZOOM-based code X-Git-Tag: v1.1.0~68 X-Git-Url: http://lists.indexdata.dk/?a=commitdiff_plain;h=480d954608a96870d651ec7e91ac63cb29a4a076;p=pazpar2-moved-to-github.git Added logging of CQL/PQF queries for ZOOM-based code --- 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); }