X-Git-Url: http://git.indexdata.com/?p=yaz-moved-to-github.git;a=blobdiff_plain;f=src%2Fxmlerror.c;h=efb7ebc2ad84fdbac0542bd9a224556cddbfa3b6;hp=ee05fe4cd8cb94bba03b56f9b718cd91ae701cf7;hb=5a3e6fa63181ab4afa8bce5f01c6de016a333334;hpb=88d3bedf772316f87e1996f655ccf8d1e2589755 diff --git a/src/xmlerror.c b/src/xmlerror.c index ee05fe4..efb7ebc 100644 --- a/src/xmlerror.c +++ b/src/xmlerror.c @@ -2,10 +2,12 @@ * Copyright (C) 1995-2010 Index Data * See the file LICENSE for details. */ - /** \file \brief Log XML / XSLT Errors via yaz_log */ +#if HAVE_CONFIG_H +#include +#endif #include #include @@ -33,7 +35,7 @@ static void xml_error_handler(void *ctx, const char *fmt, ...) va_start(ap, fmt); yaz_vsnprintf(buf, sizeof(buf), fmt, ap); - yaz_log(YLOG_WARN, "%s: %s", prefix, buf); + yaz_log(xml_error_log_level, "%s: %s", prefix, buf); va_end (ap); }