]> arthur.barton.de Git - ngircd-alex.git/commitdiff
Don't log critical (or worse) messages to stderr
authorAlexander Barton <alex@barton.de>
Thu, 2 Dec 2010 12:36:19 +0000 (13:36 +0100)
committerAlexander Barton <alex@barton.de>
Thu, 2 Dec 2010 12:36:19 +0000 (13:36 +0100)
stderr isn't redirected to the "error file" any more, so there is
no point in trying to log to it ...

src/ngircd/log.c

index f68a0fb9ec90caab217b1ecb9cac37936702af04..0bc53ed8dc2b3b9a1afea84cadfea528eed33785 100644 (file)
@@ -205,12 +205,6 @@ va_dcl
 
        Log_Message(Level, msg);
 
-       if (Level <= LOG_CRIT) {
-               /* log critical messages to stderr */
-               fprintf(stderr, "%s\n", msg);
-               fflush(stderr);
-       }
-
        if (snotice) {
                /* Send NOTICE to all local users with mode +s and to the
                 * local &SERVER channel */