From: Miroslav Lichvar Date: Mon, 24 Aug 2015 12:57:39 +0000 (+0200) Subject: conf: extend logging in CNF_ReadFile() X-Git-Tag: 2.2-pre1~62 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=05183748a8cfc44cbf4764c43d6dfee0ddde32d0;p=thirdparty%2Fchrony.git conf: extend logging in CNF_ReadFile() --- diff --git a/conf.c b/conf.c index ecc15f37..1613bcbe 100644 --- a/conf.c +++ b/conf.c @@ -372,10 +372,13 @@ CNF_ReadFile(const char *filename) in = fopen(filename, "r"); if (!in) { - LOG_FATAL(LOGF_Configure, "Could not open configuration file %s", filename); + LOG_FATAL(LOGF_Configure, "Could not open configuration file %s : %s", + filename, strerror(errno)); return; } + DEBUG_LOG(LOGF_Configure, "Reading %s", filename); + for (i = 1; fgets(line, sizeof(line), in); i++) { CNF_ParseLine(filename, i, line); }