mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 11:28:25 +00:00
"Fixes #3666, Log files are not automatically created"
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6101 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
parent
6a8c1474e0
commit
498d05ecd3
1 changed files with 1 additions and 1 deletions
|
@ -90,7 +90,7 @@ class CakeLog {
|
||||||
$filename = LOGS . $type . '.log';
|
$filename = LOGS . $type . '.log';
|
||||||
}
|
}
|
||||||
$output = date('Y-m-d H:i:s') . ' ' . ucfirst($type) . ': ' . $msg . "\n";
|
$output = date('Y-m-d H:i:s') . ' ' . ucfirst($type) . ': ' . $msg . "\n";
|
||||||
$log = new File($filename);
|
$log = new File($filename, true);
|
||||||
if ($log->writable()) {
|
if ($log->writable()) {
|
||||||
return $log->append($output);
|
return $log->append($output);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue