yaz_log_xml_errors: use log level given
authorAdam Dickmeiss <adam@indexdata.dk>
Tue, 19 Jan 2010 08:31:25 +0000 (09:31 +0100)
committerAdam Dickmeiss <adam@indexdata.dk>
Tue, 19 Jan 2010 08:31:25 +0000 (09:31 +0100)
Fix yaz_log_xml_errors to use the log_level given.. Instead of YLOG_WARN.

src/xmlerror.c

index ee05fe4..26b5840 100644 (file)
@@ -33,7 +33,7 @@ static void xml_error_handler(void *ctx, const char *fmt, ...)
     va_start(ap, fmt);
 
     yaz_vsnprintf(buf, sizeof(buf), fmt, ap);
     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);
 }
 
     va_end (ap);
 }