mirror of
https://gitlab.com/chrony/chrony.git
synced 2025-12-04 11:45:07 -05:00
conf: extend logging in CNF_ReadFile()
This commit is contained in:
5
conf.c
5
conf.c
@@ -372,10 +372,13 @@ CNF_ReadFile(const char *filename)
|
|||||||
|
|
||||||
in = fopen(filename, "r");
|
in = fopen(filename, "r");
|
||||||
if (!in) {
|
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;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
DEBUG_LOG(LOGF_Configure, "Reading %s", filename);
|
||||||
|
|
||||||
for (i = 1; fgets(line, sizeof(line), in); i++) {
|
for (i = 1; fgets(line, sizeof(line), in); i++) {
|
||||||
CNF_ParseLine(filename, i, line);
|
CNF_ParseLine(filename, i, line);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user