projects
/
pazpar2-moved-to-github.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add check of configuration (-t).
[pazpar2-moved-to-github.git]
/
src
/
pazpar2_config.c
diff --git
a/src/pazpar2_config.c
b/src/pazpar2_config.c
index
4745458
..
7340512
100644
(file)
--- a/
src/pazpar2_config.c
+++ b/
src/pazpar2_config.c
@@
-849,7
+849,7
@@
static int process_config_includes(struct conf_config *config, xmlNode *n)
return 0;
}
return 0;
}
-struct conf_config *config_create(const char *fname)
+struct conf_config *config_create(const char *fname, int verbose)
{
xmlDoc *doc = xmlParseFile(fname);
xmlNode *n;
{
xmlDoc *doc = xmlParseFile(fname);
xmlNode *n;
@@
-887,7
+887,12
@@
struct conf_config *config_create(const char *fname)
r = process_config_includes(config, n);
if (r == 0) /* OK */
{
r = process_config_includes(config, n);
if (r == 0) /* OK */
{
- xmlDocFormatDump(stdout, doc, 0);
+ if (verbose)
+ {
+ yaz_log(YLOG_LOG, "Configuration %s after include processing",
+ fname);
+ xmlDocFormatDump(yaz_log_file(), doc, 0);
+ }
r = parse_config(config, n);
}
xmlFreeDoc(doc);
r = parse_config(config, n);
}
xmlFreeDoc(doc);