X-Git-Url: http://git.indexdata.com/?p=yaz-moved-to-github.git;a=blobdiff_plain;f=src%2Fxmlerror.c;h=efb7ebc2ad84fdbac0542bd9a224556cddbfa3b6;hp=bf80324e39ae7cfeda6e2e84baafe831777b6255;hb=5a3e6fa63181ab4afa8bce5f01c6de016a333334;hpb=92b4e042f027d999411ee8c20814cc76e2736e71 diff --git a/src/xmlerror.c b/src/xmlerror.c index bf80324..efb7ebc 100644 --- a/src/xmlerror.c +++ b/src/xmlerror.c @@ -1,11 +1,13 @@ /* This file is part of the YAZ toolkit. - * Copyright (C) 1995-2008 Index Data + * 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); } @@ -56,7 +58,9 @@ void yaz_log_xml_errors(const char *prefix, int log_level) /* * Local variables: * c-basic-offset: 4 + * c-file-style: "Stroustrup" * indent-tabs-mode: nil * End: * vim: shiftwidth=4 tabstop=8 expandtab */ +