From 56593936a8eea251cddd9181c65f09c3f9b1e215 Mon Sep 17 00:00:00 2001 From: DL6ER Date: Wed, 7 Aug 2024 22:12:32 +0200 Subject: [PATCH] Be more explicit about errors appending to the main FTL log file Signed-off-by: DL6ER --- src/log.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/log.c b/src/log.c index 0fbbe447..e11e09a7 100644 --- a/src/log.c +++ b/src/log.c @@ -53,8 +53,9 @@ void init_FTL_log(const char *name) FILE *logfile = NULL; if((logfile = fopen(config.files.log.ftl.v.s, "a+")) == NULL) { + printf("ERROR: Opening of FTL log (%s) failed: %s\nUsing syslog instead!\n", + config.files.log.ftl.v.s, strerror(errno)); syslog(LOG_ERR, "Opening of FTL\'s log file failed, using syslog instead!"); - printf("ERROR: Opening of FTL log (%s) failed!\n",config.files.log.ftl.v.s); config.files.log.ftl.v.s = NULL; }