mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-09 11:44:10 +09:00
Do not disable debugging inside the debugger
This commit is contained in:
parent
18ff40eae6
commit
3648b8f156
1 changed files with 0 additions and 11 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue