From b1cf48ec3e89f27d300d4d5580dbf466826e9c5b Mon Sep 17 00:00:00 2001
From: Uma <uma.s@vtiger.com>
Date: Fri, 18 Jun 2021 15:57:43 +0530
Subject: [PATCH] Logger migration error resolved

---
 include/logging.php | 16 +++-------------
 1 file changed, 3 insertions(+), 13 deletions(-)

diff --git a/include/logging.php b/include/logging.php
index 65f2c7b61..1eb848c7f 100644
--- a/include/logging.php
+++ b/include/logging.php
@@ -24,18 +24,8 @@ require_once('config.php');
 global $PERFORMANCE_CONFIG;
 
 define('LOG4PHP_DEFAULT_INIT_OVERRIDE', true);
+define('LOG4PHP_DIR', 'libraries/log4php.debug');
+require_once(LOG4PHP_DIR.'/Logger.php');
+Logger::configure('log4php.properties');
 
-if(isset($PERFORMANCE_CONFIG) && isset($PERFORMANCE_CONFIG['LOG4PHP_DEBUG']) && $PERFORMANCE_CONFIG['LOG4PHP_DEBUG']) {
-	define('LOG4PHP_DIR', 'libraries/log4php.debug');
-        require_once(LOG4PHP_DIR.'/Logger.php');
-        Logger::configure('log4php.properties');
-} else {
-	define('LOG4PHP_DIR', 'libraries/log4php');
-        require_once(LOG4PHP_DIR.'/Logger.php');
-        require_once(LOG4PHP_DIR.'/LoggerPropertyConfigurator.php');
-
-        $config = new LoggerPropertyConfigurator();
-        $config->configure('log4php.properties');
-}
-// END
 ?>
\ No newline at end of file
-- 
GitLab