Added logging of CQL/PQF queries for ZOOM-based code
authorSebastian Hammer <quinn@indexdata.com>
Mon, 1 Dec 2008 15:22:09 +0000 (15:22 +0000)
committerSebastian Hammer <quinn@indexdata.com>
Mon, 1 Dec 2008 15:22:09 +0000 (15:22 +0000)
src/client.c

index ad63e3c..ff3c0fb 100644 (file)
@@ -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);
 }