aboutsummaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/main.c b/src/main.c
index ad6c1a0..d3df883 100644
--- a/src/main.c
+++ b/src/main.c
@@ -297,7 +297,7 @@ int main(int argc, char *argv[])
}
if (process_options(1) != POSITIVE_VALIDATIONS) {
- fprintf(stderr, "%s: invalid config detected\n", argv[0]);
+ fprintf(stderr, "%s: invalid/missing config detected\n", argv[0]);
exit(EXIT_FAILURE);
}
@@ -308,6 +308,7 @@ int main(int argc, char *argv[])
} else {
LOG_SET_FUNCS_VA(LOG_COLORED_FUNCS);
}
+
if (getopt_used(OPT_LOGLEVEL)) {
value = getopt_str(OPT_LOGLEVEL);
if (!strcasecmp(value, "debug"))
@@ -323,6 +324,7 @@ int main(int argc, char *argv[])
exit(EXIT_FAILURE);
}
}
+
if (log_open())
exit(EXIT_FAILURE);