Unless ->level is set, logging is just a no-op. We must set this
twice, because the system log is used to report command line parsing
errors, but the command line might increase the log level.
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
}
static struct logfile startup_log;
+void log_early_setlevel(void)
+{
+ startup_log.level=message_level;
+}
void log_early_init(void)
{
logfile_file_init(&startup_log,stderr,"startup");
+ log_early_setlevel();
system_log=&startup_log.ops;;
}
enter_phase(PHASE_GETOPTS);
parse_options(argc,argv);
+ log_early_setlevel();
enter_phase(PHASE_READCONFIG);
config=read_conffile(configfile);
}
void log_early_init(void);
+void log_early_setlevel(void);
/* SITE interface */