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:
testadmin
2026-05-14 11:44:57 +08:00
parent cbe48e938a
commit 7fe15a0d50
2 changed files with 13 additions and 17 deletions
+1 -1
View File
@@ -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);
}