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:
gwoo 2008-06-19 14:23:29 +00:00
parent 21e23ba0bd
commit 8b493b2923
2 changed files with 2 additions and 2 deletions

View file

@ -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;

View file

@ -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');
}
/**