fix: unify log path to runtime/log/ for all contexts
- Logger: use root_path()/runtime/log/ instead of runtime_path()/log/ (runtime_path() returns app-specific path in multi-app mode) - Remove debug output from Log controller
This commit is contained in:
@@ -13,7 +13,7 @@ class Logger
|
||||
{
|
||||
$date = date('Y-m-d');
|
||||
$time = date('Y-m-d H:i:s');
|
||||
$dir = runtime_path() . 'log' . DIRECTORY_SEPARATOR . $category;
|
||||
$dir = root_path() . 'runtime' . DIRECTORY_SEPARATOR . 'log' . DIRECTORY_SEPARATOR . $category;
|
||||
if (!is_dir($dir)) {
|
||||
mkdir($dir, 0755, true);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user