1
0
mirror of https://github.com/osmarks/ngircd.git synced 2024-12-12 01:40:27 +00:00

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 bb1d014aba.
This commit is contained in:
Alexander Barton 2020-05-03 17:08:51 +02:00
parent 8a37695bf3
commit 8d414b079c

View File

@ -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" );