From 300ea88b2932fee0882363e5a18d059fc00d9475 Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Fri, 9 Oct 2009 14:31:58 +0200 Subject: [PATCH] Log more for PQF to CQL conversion --- src/client.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/client.c b/src/client.c index 95e130a..117a557 100644 --- a/src/client.c +++ b/src/client.c @@ -657,9 +657,10 @@ static char *make_cqlquery(struct client *cl) ODR odr_out = odr_createmem(ODR_ENCODE); zquery = p_query_rpn(odr_out, cl->pquery); + yaz_log(YLOG_LOG, "PQF: %s", cl->pquery); if ((status = cql_transform_rpn2cql_wrbuf(cqlt, wrb, zquery))) { - yaz_log(YLOG_WARN, "failed to generate CQL query, code=%d", status); + yaz_log(YLOG_WARN, "Failed to generate CQL query, code=%d", status); r = 0; } else @@ -691,8 +692,9 @@ int client_parse_query(struct client *cl, const char *query) if (!cn) { client_set_state(cl, Client_Error); - yaz_log(YLOG_WARN, "Failed to parse query for %s", - client_get_database(cl)->database->url); + yaz_log(YLOG_WARN, "Failed to parse CCL query %s for %s", + query, + client_get_database(cl)->database->url); return -1; } wrbuf_rewind(se->wrbuf); -- 1.7.10.4