mirror of
https://gitlab.com/chrony/chrony.git
synced 2025-12-06 12:45:07 -05:00
conf: improve log message for failed additions in sources reload
Describe the error status in the log message when adding a source from sourcedir failed.
This commit is contained in:
3
conf.c
3
conf.c
@@ -1734,7 +1734,8 @@ reload_source_dirs(void)
|
||||
if (s == NSR_UnresolvedName) {
|
||||
unresolved++;
|
||||
} else if (s != NSR_Success) {
|
||||
LOG(LOGS_ERR, "Could not add source %s", source->params.name);
|
||||
LOG(LOGS_ERR, "Could not add source %s : %s",
|
||||
source->params.name, NSR_StatusToString(s));
|
||||
|
||||
/* Mark the source as not present */
|
||||
source->params.name[0] = '\0';
|
||||
|
||||
Reference in New Issue
Block a user