mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2026-03-04 06:25:22 +01:00
Add an entry to log, if the database is updated.
This commit is contained in:
@@ -150,6 +150,12 @@ abstract class AbstractLogEntry extends DBElement
|
||||
*/
|
||||
protected $extra = [];
|
||||
|
||||
public function __construct()
|
||||
{
|
||||
$this->timestamp = new DateTime();
|
||||
$this->level = self::LEVEL_WARNING;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the user that caused the event associated with this log entry.
|
||||
* @return User
|
||||
|
||||
Reference in New Issue
Block a user