Added Log to Session
This commit is contained in:
parent
4e52b1e545
commit
b4226d7bdd
@ -31,8 +31,12 @@ class Session extends Module {
|
|||||||
$this->plugins(__METHOD__, 0, func_get_args());
|
$this->plugins(__METHOD__, 0, func_get_args());
|
||||||
|
|
||||||
# Update
|
# Update
|
||||||
if (!isset($this->settings['version'])||$this->settings['version']!==$version)
|
if (!isset($this->settings['version'])||$this->settings['version']!==$version) {
|
||||||
if (!Database::update($database, $dbName, @$this->settings['version'])) exit('Error: Updating the database failed!');
|
if (!Database::update($database, $dbName, @$this->settings['version'])) {
|
||||||
|
Log::error($database, __METHOD__, __LINE__, 'Updating the database failed');
|
||||||
|
exit('Error: Updating the database failed!');
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
# Return settings
|
# Return settings
|
||||||
$return['config'] = $this->settings;
|
$return['config'] = $this->settings;
|
||||||
|
Loading…
Reference in New Issue
Block a user