DataManager improvements

This commit is contained in:
Taras Machyshyn
2014-10-23 12:18:17 +03:00
parent cdffb85df0
commit 867aa72038
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -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.");
}
+1 -1
View File
@@ -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 */
),