From 867aa720383eae87406dadfbda28d55e25529b3a Mon Sep 17 00:00:00 2001 From: Taras Machyshyn Date: Thu, 23 Oct 2014 12:18:17 +0300 Subject: [PATCH] DataManager improvements --- application/Espo/Core/DataManager.php | 4 ++-- application/Espo/Core/defaults/config.php | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/application/Espo/Core/DataManager.php b/application/Espo/Core/DataManager.php index c71441bd24..44525ff57e 100644 --- a/application/Espo/Core/DataManager.php +++ b/application/Espo/Core/DataManager.php @@ -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."); } diff --git a/application/Espo/Core/defaults/config.php b/application/Espo/Core/defaults/config.php index 97271412b2..5206f0b7bf 100644 --- a/application/Espo/Core/defaults/config.php +++ b/application/Espo/Core/defaults/config.php @@ -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 */ ),