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:
@@ -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.'"');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user