* NT threaded server code by
* Chas Woodfield, Fretwell Downing Informatics.
*
- * $Id: statserv.c,v 1.28 2005-03-08 13:59:08 adam Exp $
+ * $Id: statserv.c,v 1.30 2005-05-08 07:13:57 adam Exp $
*/
/**
#if HAVE_XML2
#include <libxml/parser.h>
#include <libxml/tree.h>
+#include <libxml/xinclude.h>
#endif
#if YAZ_POSIX_THREADS
yaz_log(YLOG_FATAL, "Could not parse %s", control_block.xml_config);
exit(1);
}
+ else
+ {
+ int noSubstitutions = xmlXIncludeProcess(xml_config_doc);
+ if (noSubstitutions == -1)
+ {
+ yaz_log(YLOG_WARN, "XInclude processing failed for config %s",
+ control_block.xml_config);
+ exit(1);
+ }
+ }
}
xml_config_read();
#endif
control_block.loglevel = yaz_log_mask_str(STAT_DEFAULT_LOG_LEVEL);
yaz_log_init_level(control_block.loglevel);
+ get_logbits(1);
while ((ret = options("1a:iszSTl:v:u:c:w:t:k:d:A:p:DC:f:",
argv, argc, &arg)) != -2)
{
control_block.loglevel =
yaz_log_mask_str_x(arg,control_block.loglevel);
yaz_log_init(control_block.loglevel, me, control_block.logfile);
+ get_logbits(1);
break;
case 'a':
option_copy(control_block.apdufile, arg);
return 1;
}
}
- get_logbits(1);
return 0;
}