Add an entry to log, if the database is updated.

This commit is contained in:
Jan Böhmer 2020-01-26 21:31:48 +01:00
parent d5f018a738
commit bfa43e68a9
6 changed files with 110 additions and 7 deletions

View file

@ -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