mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-06-21 17:39:06 +02:00
Add an entry to log, if the database is updated.
This commit is contained in:
parent
d5f018a738
commit
bfa43e68a9
6 changed files with 110 additions and 7 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue