From: Jérôme Loyet Date: Tue, 16 Nov 2010 22:53:47 +0000 (+0000) Subject: - fix (log with level < WARNING before daemonizing were not written to /dev/stderr) X-Git-Tag: php-5.3.4RC1~18 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=404580d95cdc804476f41de898d7ea9b24bd5e75;p=php - fix (log with level < WARNING before daemonizing were not written to /dev/stderr) --- diff --git a/sapi/fpm/fpm/zlog.c b/sapi/fpm/fpm/zlog.c index 4df018bc2c..b99ad850d8 100644 --- a/sapi/fpm/fpm/zlog.c +++ b/sapi/fpm/fpm/zlog.c @@ -121,7 +121,7 @@ void zlog_ex(const char *function, int line, int flags, const char *fmt, ...) /* buf[len++] = '\n'; write(zlog_fd > -1 ? zlog_fd : STDERR_FILENO, buf, len); - if (zlog_fd != STDERR_FILENO && zlog_fd > -1 && !launched && (flags & ZLOG_LEVEL_MASK) >= ZLOG_WARNING) { + if (zlog_fd != STDERR_FILENO && zlog_fd > -1 && !launched && (flags & ZLOG_LEVEL_MASK) >= ZLOG_NOTICE) { write(STDERR_FILENO, buf, len); } }