mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2026-03-06 07:25:32 +01:00
Use a enum for level in LogEntries
This commit is contained in:
@@ -69,10 +69,9 @@ class SecurityEventLogEntry extends AbstractLogEntry
|
||||
public function __construct(string $type, string $ip_address, bool $anonymize = true)
|
||||
{
|
||||
parent::__construct();
|
||||
$this->level = self::LEVEL_INFO;
|
||||
$this->setIPAddress($ip_address, $anonymize);
|
||||
$this->setEventType($type);
|
||||
$this->level = self::LEVEL_NOTICE;
|
||||
$this->level = LogLevel::NOTICE;
|
||||
}
|
||||
|
||||
public function setTargetElement(?AbstractDBElement $element): AbstractLogEntry
|
||||
|
||||
Reference in New Issue
Block a user