]> arthur.barton.de Git - ngircd.git/commitdiff
Adjust severity levels of some log messages
authorAlexander Barton <alex@barton.de>
Sun, 10 Feb 2013 19:18:44 +0000 (20:18 +0100)
committerAlexander Barton <alex@barton.de>
Sun, 10 Feb 2013 19:18:44 +0000 (20:18 +0100)
src/ngircd/conf.c
src/ngircd/log.c

index 835b5ea4e450b3ed262ebe82b1647f5870f495f6..e46dcfee43669644091285586fd956b9c9a6c94c 100644 (file)
@@ -832,8 +832,8 @@ Read_TextFile(const char *Filename, const char *Name, array *Destination)
 
        fp = fopen(Filename, "r");
        if (!fp) {
-               Config_Error(LOG_WARNING, "Can't read %s file \"%s\": %s",
-                                       Name, Filename, strerror(errno));
+               Config_Error(LOG_ERR, "Can't read %s file \"%s\": %s",
+                            Name, Filename, strerror(errno));
                return false;
        }
 
@@ -843,7 +843,7 @@ Read_TextFile(const char *Filename, const char *Name, array *Destination)
 
                /* add text including \0 */
                if (!array_catb(Destination, line, strlen(line) + 1)) {
-                       Log(LOG_WARNING, "Cannot read/add \"%s\", line %d: %s",
+                       Log(LOG_ERR, "Cannot read/add \"%s\", line %d: %s",
                            Filename, line_no, strerror(errno));
                        break;
                }
index 375f4bc1f6ab605ecbfe659367c82812b981a1a0..e5bed7912f28401ab93884ee5e84ad4c0c5f7465 100644 (file)
@@ -109,7 +109,7 @@ Log_ReInit(void)
 GLOBAL void
 Log_Exit( void )
 {
-       Log(LOG_NOTICE, "%s done%s, served %lu connection%s.", PACKAGE_NAME,
+       Log(LOG_INFO, "%s done%s, served %lu connection%s.", PACKAGE_NAME,
            NGIRCd_SignalRestart ? " (restarting)" : "", Conn_CountAccepted(),
            Conn_CountAccepted() == 1 ? "" : "s");
 #ifdef SYSLOG