diff --git a/convention.php b/convention.php index 99bcad75..21478fdb 100644 --- a/convention.php +++ b/convention.php @@ -115,7 +115,7 @@ return [ // +---------------------------------------------------------------------- 'log' => [ - 'type' => 'File', + 'type' => 'File', // 支持 file socket trace sae 'path' => LOG_PATH, ], diff --git a/library/think/cache/driver/file.php b/library/think/cache/driver/file.php index cc4f7300..30435be7 100644 --- a/library/think/cache/driver/file.php +++ b/library/think/cache/driver/file.php @@ -24,7 +24,7 @@ class File 'path_level' => 1, 'prefix' => '', 'length' => 0, - 'path' => '', + 'path' => LOG_PATH, 'data_compress' => false, ];