1
0
mirror of https://github.com/Seldaek/monolog.git synced 2025-10-22 17:16:18 +02:00

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.
This commit is contained in:
Sven Paulus
2011-03-22 23:18:13 +01:00
parent d9d0f51238
commit 38a4ddf9f2

View File

@@ -76,7 +76,7 @@ class SyslogHandler extends AbstractHandler
throw new \UnexpectedValueException('unknown facility value "'.$facility.'" given'); 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.'"'); throw new \LogicException('can\'t open syslog for ident "'.$ident.'" and facility "'.$facility.'"');
} }
} }