Adding patch from [2843], fixes Logging only writes to error.log

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5380 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
phpnut 2007-07-06 04:51:13 +00:00
parent fb0a327a38
commit 2eadf55e84

View file

@ -128,14 +128,7 @@ class Object {
} }
if (!is_string($msg)) { if (!is_string($msg)) {
ob_start(); $msg = print_r ($msg);
print_r ($msg);
$msg = ob_get_contents();
ob_end_clean();
}
if (!isset($this->_log->levels[$type])) {
$type = LOG_ERROR;
} }
return $this->_log->write($type, $msg); return $this->_log->write($type, $msg);
} }