Log XML/XSLT errors to yaz_log.
authorAdam Dickmeiss <adam@indexdata.dk>
Tue, 25 Mar 2008 13:00:59 +0000 (14:00 +0100)
committerAdam Dickmeiss <adam@indexdata.dk>
Tue, 25 Mar 2008 13:00:59 +0000 (14:00 +0100)
src/pazpar2.c

index 59413e1..24020ef 100644 (file)
@@ -80,6 +80,9 @@ int main(int argc, char **argv)
         yaz_log(YLOG_WARN|YLOG_ERRNO, "signal");
 
     yaz_log_init_prefix("pazpar2");
+#if YAZ_VERSIONL >= 0x03001B
+    yaz_log_xml_errors(0, YLOG_WARN);
+#endif
 
     while ((ret = options("dDf:h:l:p:t:u:VX", argv, argc, &arg)) != -2)
     {