]> arthur.barton.de Git - ngircd.git/commitdiff
Correctly use Config_Error() instead of Log() in Read_Config()
authorAlexander Barton <alex@barton.de>
Sun, 3 May 2020 15:08:51 +0000 (17:08 +0200)
committerAlexander Barton <alex@barton.de>
Sun, 3 May 2020 15:08:51 +0000 (17:08 +0200)
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.

src/ngircd/conf.c

index d3743abf5a64e629f1a8e7294f31a283ffcd4699..a58ac26e2c301cdb108e1350d3ac7b1e9aded0c4 100644 (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" );