From 3bb050d5e2a79c08bce20b1565c7c59760527cc0 Mon Sep 17 00:00:00 2001 From: Prasad <prasad@vtiger.com> Date: Mon, 15 Apr 2024 16:01:35 +0530 Subject: [PATCH] Fixes #1816: Typo in LOGLEVEL_DEBUG flag name --- config.performance.php | 2 +- modules/Vtiger/helpers/Logger.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/config.performance.php b/config.performance.php index db6125cdc..303c0dcf5 100644 --- a/config.performance.php +++ b/config.performance.php @@ -10,7 +10,7 @@ /* Performance paramters can be configured to fine tune vtiger CRM runtime */ $PERFORMANCE_CONFIG = Array( // Enable Vtiger Log Level for debugging only if requried - 'LOGLEVEl_DEBUG' => false, + 'LOGLEVEL_DEBUG' => false, // Should the caller information be captured in SQL Logging? // It adds little overhead for performance but will be useful to debug diff --git a/modules/Vtiger/helpers/Logger.php b/modules/Vtiger/helpers/Logger.php index 9a8ac5e00..d55d8387f 100644 --- a/modules/Vtiger/helpers/Logger.php +++ b/modules/Vtiger/helpers/Logger.php @@ -32,7 +32,7 @@ class Logger { if (!self::$initialized) { global $PERFORMANCE_CONFIG; // Check if the performance config is set and debug logging is enabled - if (isset($PERFORMANCE_CONFIG) && isset($PERFORMANCE_CONFIG['LOGLEVEl_DEBUG']) && $PERFORMANCE_CONFIG['LOGLEVEl_DEBUG']) { + if (isset($PERFORMANCE_CONFIG) && isset($PERFORMANCE_CONFIG['LOGLEVEL_DEBUG']) && $PERFORMANCE_CONFIG['LOGLEVEL_DEBUG']) { // Set the default log level to 100 and the log file path self::$logLevel = 100; self::$filePath = "logs/vtigercrm.log"; -- GitLab