Do not disable debugging inside the debugger

This commit is contained in:
Kijin Sung 2016-02-12 14:45:23 +09:00
parent 18ff40eae6
commit 3648b8f156

View file

@ -7,11 +7,6 @@ namespace Rhymix\Framework;
*/
class Debug
{
/**
* Cache the debug.enabled flag here.
*/
protected static $_enabled;
/**
* Store log entries here.
*/
@ -103,12 +98,6 @@ class Debug
*/
public static function addEntry($message)
{
// If debugging is disabled, stop here.
if (!(self::$_enabled = (self::$_enabled !== null) ? self::$_enabled : Config::get('debug.enabled')))
{
return false;
}
// Get the backtrace.
$backtrace_args = defined('\DEBUG_BACKTRACE_IGNORE_ARGS') ? \DEBUG_BACKTRACE_IGNORE_ARGS : 0;
$backtrace = debug_backtrace($backtrace_args);