mirror of
https://github.com/Seldaek/monolog.git
synced 2025-08-06 13:16:39 +02:00
Improvement for the fix
To follow @Seldaek improvement recommendations. Sorry for the rookie mistakes :)
This commit is contained in:
@@ -82,7 +82,7 @@ class SyslogUdpHandler extends AbstractSyslogHandler
|
||||
/**
|
||||
* Make common syslog header (see rfc5424 or rfc3164)
|
||||
*/
|
||||
protected function makeCommonSyslogHeader(int $severity, DateTimeImmutable $datetime): string
|
||||
protected function makeCommonSyslogHeader(int $severity, DateTimeInterface $datetime): string
|
||||
{
|
||||
$priority = $severity + $this->facility;
|
||||
|
||||
@@ -113,11 +113,6 @@ class SyslogUdpHandler extends AbstractSyslogHandler
|
||||
}
|
||||
}
|
||||
|
||||
protected function getDateTime(): string
|
||||
{
|
||||
return date($this->dateFormats[$this->rfc]);
|
||||
}
|
||||
|
||||
/**
|
||||
* Inject your own socket, mainly used for testing
|
||||
*/
|
||||
|
Reference in New Issue
Block a user