aboutsummaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/main.c b/src/main.c
index 5d18d4a..88deb7f 100644
--- a/src/main.c
+++ b/src/main.c
@@ -136,9 +136,10 @@ int main(int argc, char *argv[])
exit(EXIT_FAILURE);
}
- if (getopt_used(OPT_LOGFILE)) {
+ if (getopt_used(OPT_LOGTOFILE) || getopt_used(OPT_LOGFILE)) {
log_file = getopt_str(OPT_LOGFILE);
LOG_SET_FUNCS_VA(LOG_FILE_FUNCS);
+ fprintf(stderr, "Logfile: '%s'\n", log_file);
} else {
LOG_SET_FUNCS_VA(LOG_COLORED_FUNCS);
}