瀏覽代碼

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.

Sven Paulus 15 年之前
父節點
當前提交
38a4ddf9f2
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/Monolog/Handler/SyslogHandler.php

+ 1 - 1
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.'"'); 
         }
     }