zoomtst3: print event name
[yaz-moved-to-github.git] / src / xmlerror.c
index bf80324..26b5840 100644 (file)
@@ -1,5 +1,5 @@
 /* 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.
  */
 
@@ -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);
-    yaz_log(YLOG_WARN, "%s: %s", prefix, buf);
+    yaz_log(xml_error_log_level, "%s: %s", prefix, buf);
 
     va_end (ap);
 }
@@ -56,7 +56,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
  */
+