mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-12 07:11:42 +09:00
Do not write debug entries to error log if debugging is disabled
This commit is contained in:
parent
68e28b91c5
commit
c09a759ace
1 changed files with 1 additions and 1 deletions
|
|
@ -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));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue