DataManager improvements
This commit is contained in:
@@ -64,7 +64,7 @@ class DataManager
|
||||
{
|
||||
$result = $this->getContainer()->get('fileManager')->removeInDir($this->cachePath);
|
||||
|
||||
if ($result === false) {
|
||||
if ($result != true) {
|
||||
throw new Exceptions\Error("Error while clearing cache");
|
||||
}
|
||||
|
||||
@@ -87,7 +87,7 @@ class DataManager
|
||||
$GLOBALS['log']->error('Fault to rebuild database schema'.'. Details: '.$e->getMessage());
|
||||
}
|
||||
|
||||
if ($result === false) {
|
||||
if ($result != true) {
|
||||
throw new Exceptions\Error("Error while rebuilding database. See log file for details.");
|
||||
}
|
||||
|
||||
|
||||
@@ -75,7 +75,7 @@ return array (
|
||||
'logger' =>
|
||||
array (
|
||||
'path' => 'data/logs/espo.log',
|
||||
'level' => 'ERROR', /** DEBUG, INFO, NOTICE, WARNING, ERROR, CRITICAL, ALERT, EMERGENCY */
|
||||
'level' => 'WARNING', /** DEBUG, INFO, NOTICE, WARNING, ERROR, CRITICAL, ALERT, EMERGENCY */
|
||||
'isRotate' => true, /** rotate log files every day */
|
||||
'maxRotateFiles' => 30, /** max number of rotate files */
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user