mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
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:
parent
fb0a327a38
commit
2eadf55e84
1 changed files with 1 additions and 8 deletions
|
@ -128,14 +128,7 @@ class Object {
|
|||
}
|
||||
|
||||
if (!is_string($msg)) {
|
||||
ob_start();
|
||||
print_r ($msg);
|
||||
$msg = ob_get_contents();
|
||||
ob_end_clean();
|
||||
}
|
||||
|
||||
if (!isset($this->_log->levels[$type])) {
|
||||
$type = LOG_ERROR;
|
||||
$msg = print_r ($msg);
|
||||
}
|
||||
return $this->_log->write($type, $msg);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue