diff options
author | Toni Uhlig <matzeton@googlemail.com> | 2018-05-31 23:05:56 +0200 |
---|---|---|
committer | Toni Uhlig <matzeton@googlemail.com> | 2018-05-31 23:05:56 +0200 |
commit | 5b1217409fdaec05eb08f94a8db8da78e5f9d46a (patch) | |
tree | d7de56b8293056e3d56f47b5036798c196beb1cc /src/main.c | |
parent | 6564cac52527748aa4c2de162afbf348fd16762f (diff) |
POTD skeleton #87.
Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
Diffstat (limited to 'src/main.c')
-rw-r--r-- | src/main.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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); } |