From 2f8d2d381ef4a2fd9ea8f67a36a731aae8b14064 Mon Sep 17 00:00:00 2001 From: Andrey Andreev Date: Wed, 7 Aug 2013 15:54:47 +0300 Subject: Add a changelog entry for PR #2590 and further optimize log_message() CI_Log::write_log() already checks the log threshold, so there's no point in doing it in log_message() as well. --- system/core/Common.php | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) (limited to 'system/core') diff --git a/system/core/Common.php b/system/core/Common.php index 98a3fcb35..21e1df9c6 100644 --- a/system/core/Common.php +++ b/system/core/Common.php @@ -439,17 +439,7 @@ if ( ! function_exists('log_message')) */ function log_message($level, $message, $php_error = FALSE) { - static $_log, $_log_threshold; - - if ($_log_threshold === NULL) - { - $_log_threshold = config_item('log_threshold'); - } - - if ($_log_threshold === 0) - { - return; - } + static $_log; if ($_log === NULL) { -- cgit v1.2.3-24-g4f1b