From 38a4ddf9f26951f9d34a712826be010b1162073a Mon Sep 17 00:00:00 2001 From: Sven Paulus Date: Tue, 22 Mar 2011 23:18:13 +0100 Subject: [PATCH] remove LOG_NDELAY from the openlog() call since the expected behaviour to get a FALSE returned on connection problems isn't supported by the underlying POSIX API. --- src/Monolog/Handler/SyslogHandler.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Monolog/Handler/SyslogHandler.php b/src/Monolog/Handler/SyslogHandler.php index ff9db951..1ac75f6d 100644 --- a/src/Monolog/Handler/SyslogHandler.php +++ b/src/Monolog/Handler/SyslogHandler.php @@ -76,7 +76,7 @@ class SyslogHandler extends AbstractHandler throw new \UnexpectedValueException('unknown facility value "'.$facility.'" given'); } - if (!openlog($ident, LOG_NDELAY|LOG_PID, $facility)) { + if (!openlog($ident, LOG_PID, $facility)) { throw new \LogicException('can\'t open syslog for ident "'.$ident.'" and facility "'.$facility.'"'); } }