diff options
Diffstat (limited to 'src/main.c')
-rw-r--r-- | src/main.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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); |