X-Git-Url: http://git.indexdata.com/?p=yazpp-moved-to-github.git;a=blobdiff_plain;f=src%2Fyaz-cql2rpn.cpp;h=f8ca22b0b4d180d30a74b1b3aaefc14b4e733734;hp=79998405630df5f18b4002e5fb7e97a4ac5c205d;hb=5e3f7e1a720a08d30c407049c94c6ca825a5ed27;hpb=2c25ce513613784819fcb216c60d1584402e7907 diff --git a/src/yaz-cql2rpn.cpp b/src/yaz-cql2rpn.cpp index 7999840..f8ca22b 100644 --- a/src/yaz-cql2rpn.cpp +++ b/src/yaz-cql2rpn.cpp @@ -2,7 +2,7 @@ * Copyright (c) 1998-2004, Index Data. * See the file LICENSE for details. * - * $Id: yaz-cql2rpn.cpp,v 1.4 2004-03-29 22:46:51 adam Exp $ + * $Id: yaz-cql2rpn.cpp,v 1.6 2004-12-13 20:50:54 adam Exp $ */ #include @@ -38,7 +38,7 @@ int Yaz_cql2rpn::query_transform(const char *cql_query, int r = cql_parser_string(cp, cql_query); if (r) { - yaz_log(LOG_LOG, "CQL Parse Error"); + yaz_log(YLOG_LOG, "CQL Parse Error"); r = 10; } else @@ -56,7 +56,7 @@ int Yaz_cql2rpn::query_transform(const char *cql_query, size_t off; const char *pqf_msg; int code = yaz_pqf_error(pp, &pqf_msg, &off); - yaz_log(LOG_WARN, "PQF Parser Error %s (code %d)", + yaz_log(YLOG_WARN, "PQF Parser Error %s (code %d)", pqf_msg, code); r = -1; } @@ -65,7 +65,7 @@ int Yaz_cql2rpn::query_transform(const char *cql_query, else { r = cql_transform_error(m_transform, &addinfo); - yaz_log(LOG_LOG, "CQL Transform Error %d %s", r, + yaz_log(YLOG_LOG, "CQL Transform Error %d %s", r, addinfo ? addinfo : ""); } }