mirror of
https://github.com/Seldaek/monolog.git
synced 2025-08-03 11:47:38 +02:00
openlog never fails on php8.2 so remove check
This commit is contained in:
@@ -50,11 +50,6 @@ parameters:
|
|||||||
count: 1
|
count: 1
|
||||||
path: src/Monolog/Handler/MandrillHandler.php
|
path: src/Monolog/Handler/MandrillHandler.php
|
||||||
|
|
||||||
-
|
|
||||||
message: "#^Negated boolean expression is always false\\.$#"
|
|
||||||
count: 1
|
|
||||||
path: src/Monolog/Handler/SyslogHandler.php
|
|
||||||
|
|
||||||
-
|
-
|
||||||
message: "#^Variable property access on \\$this\\(Monolog\\\\LogRecord\\)\\.$#"
|
message: "#^Variable property access on \\$this\\(Monolog\\\\LogRecord\\)\\.$#"
|
||||||
count: 4
|
count: 4
|
||||||
|
@@ -58,9 +58,7 @@ class SyslogHandler extends AbstractSyslogHandler
|
|||||||
*/
|
*/
|
||||||
protected function write(LogRecord $record): void
|
protected function write(LogRecord $record): void
|
||||||
{
|
{
|
||||||
if (!openlog($this->ident, $this->logopts, $this->facility)) {
|
openlog($this->ident, $this->logopts, $this->facility);
|
||||||
throw new \LogicException('Can\'t open syslog for ident "'.$this->ident.'" and facility "'.$this->facility.'"' . Utils::getRecordMessageForException($record));
|
|
||||||
}
|
|
||||||
syslog($this->toSyslogPriority($record->level), (string) $record->formatted);
|
syslog($this->toSyslogPriority($record->level), (string) $record->formatted);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user