Ups... memory leak
[yaz-moved-to-github.git] / src / xmlerror.c
index d036e58..efb7ebc 100644 (file)
@@ -1,11 +1,13 @@
 /* This file is part of the YAZ toolkit.
- * Copyright (C) 1995-2009 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 <config.h>
+#endif
 
 #include <stdio.h>
 #include <string.h>
@@ -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);
 }