Configure logging facility sooner.

Error messages from initialization were missing.

Signed-off-by: Miroslav Lichvar <mlichvar@redhat.com>
master
Miroslav Lichvar 2012-08-27 19:20:41 +02:00 committed by Richard Cochran
parent afbec38d6e
commit 2040933d74
1 changed files with 4 additions and 4 deletions

View File

@ -227,6 +227,10 @@ int main(int argc, char *argv[])
return -1; return -1;
} }
print_set_verbose(cfg_settings.verbose);
print_set_syslog(cfg_settings.use_syslog);
print_set_level(cfg_settings.print_level);
for (i = 0; i < nports; i++) { for (i = 0; i < nports; i++) {
if (config_create_interface(ports[i], &cfg_settings) < 0) { if (config_create_interface(ports[i], &cfg_settings) < 0) {
fprintf(stderr, "too many interfaces\n"); fprintf(stderr, "too many interfaces\n");
@ -263,10 +267,6 @@ int main(int argc, char *argv[])
return -1; return -1;
} }
print_set_verbose(cfg_settings.verbose);
print_set_syslog(cfg_settings.use_syslog);
print_set_level(cfg_settings.print_level);
clock = clock_create(phc_index, iface, cfg_settings.nports, clock = clock_create(phc_index, iface, cfg_settings.nports,
*timestamping, ds); *timestamping, ds);
if (!clock) { if (!clock) {