diff options
| author | Alexander Barton <alex@barton.de> | 2020-05-03 17:08:51 +0200 |
|---|---|---|
| committer | Alexander Barton <alex@barton.de> | 2020-05-03 17:08:51 +0200 |
| commit | 8d414b079c1b4b0b8c88c8ab5cf4b27bf0942752 (patch) | |
| tree | 2a68fd631d0315e5ef7da957308b9560fe6e31f4 /src | |
| parent | 8a37695bf363a7cc2eb4bf3d17ff651f92cab253 (diff) | |
| download | ngircd-8d414b079c1b4b0b8c88c8ab5cf4b27bf0942752.tar.gz ngircd-8d414b079c1b4b0b8c88c8ab5cf4b27bf0942752.zip | |
Correctly use Config_Error() instead of Log() in Read_Config()
The name of the Config_Error() function is misleading: it is not only used to show configuraton errors, but all messages shown during normal operation as well as for "config testing": it takes care of the correct formatting of the messages (syslog, forground logging, config testing). This fixes commit bb1d014abad8.
Diffstat (limited to 'src')
| -rw-r--r-- | src/ngircd/conf.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ngircd/conf.c b/src/ngircd/conf.c index d3743abf..a58ac26e 100644 --- a/src/ngircd/conf.c +++ b/src/ngircd/conf.c @@ -903,7 +903,7 @@ Read_Config(bool TestOnly, bool IsStarting) FILE *fd; DIR *dh; - Log(LOG_INFO, "Using configuration file \"%s\" ...", NGIRCd_ConfFile); + Config_Error(LOG_INFO, "Using configuration file \"%s\" ...", NGIRCd_ConfFile); /* Open configuration file */ fd = fopen( NGIRCd_ConfFile, "r" ); |