mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
fixes #4947, debugger using LOG_DEBUG
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7212 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
parent
21e23ba0bd
commit
8b493b2923
2 changed files with 2 additions and 2 deletions
|
@ -115,7 +115,7 @@ class Debugger extends Object {
|
|||
/**
|
||||
* neatly logs a given var
|
||||
*/
|
||||
function log($var, $level = 7) {
|
||||
function log($var, $level = LOG_DEBUG) {
|
||||
$_this = Debugger::getInstance();
|
||||
$trace = $_this->trace(array('start' => 1, 'depth' => 2, 'format' => 'array'));
|
||||
$source = null;
|
||||
|
|
|
@ -118,7 +118,7 @@ class DebuggerTest extends UnitTestCase {
|
|||
* @return void
|
||||
*/
|
||||
function testTrimPath() {
|
||||
$this->assertEqual(Debugger::trimPath(APP), 'APP/');
|
||||
$this->assertEqual(Debugger::trimPath(APP), 'APP' . DS);
|
||||
$this->assertEqual(Debugger::trimPath(CAKE_CORE_INCLUDE_PATH), 'CORE');
|
||||
}
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue