From c09a759ace4bb5d38386d0c27f29b99d990efaab Mon Sep 17 00:00:00 2001 From: Kijin Sung Date: Wed, 9 Mar 2016 15:19:22 +0900 Subject: [PATCH] Do not write debug entries to error log if debugging is disabled --- common/framework/debug.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/framework/debug.php b/common/framework/debug.php index 0d6ba956c..b3653a943 100644 --- a/common/framework/debug.php +++ b/common/framework/debug.php @@ -145,7 +145,7 @@ class Debug self::$_entries[] = $entry; // Add the entry to the error log. - if (self::$write_to_error_log) + if (self::$write_to_error_log && self::isEnabledForCurrentUser()) { $log_entry = str_replace("\0", '', sprintf('Rhymix Debug: %s in %s on line %d', var_export($message, true), $entry->file, $entry->line));