Logger : Deprectation PHP8.2 : openlog want a valid flag and not null

This commit is contained in:
2023-06-30 09:45:59 +02:00
parent fa7de7c6c4
commit 8656362f0d

View File

@@ -437,7 +437,7 @@ class Logger
break; break;
} }
} }
openlog($this->syslogPrefix, null, $this->syslogFacility); openlog($this->syslogPrefix, LOG_PID, $this->syslogFacility);
// Syslog display a #012 when there is a \n : remove it // Syslog display a #012 when there is a \n : remove it
$message = str_replace("\n", "", $message); $message = str_replace("\n", "", $message);
syslog($priority, $message); syslog($priority, $message);