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:
Miroslav Lichvar
2023-09-11 16:14:53 +02:00
parent 37deee7140
commit aa8196328c
5 changed files with 37 additions and 1 deletions

View File

@@ -60,6 +60,8 @@ extern NSR_Status NSR_AddSource(NTP_Remote_Address *remote_addr, NTP_Source_Type
extern NSR_Status NSR_AddSourceByName(char *name, int port, int pool, NTP_Source_Type type,
SourceParameters *params, uint32_t *conf_id);
extern const char *NSR_StatusToString(NSR_Status status);
/* Function type for handlers to be called back when an attempt
* (possibly unsuccessful) to resolve unresolved sources ends */
typedef void (*NSR_SourceResolvingEndHandler)(void);