rabin 1 年之前
父节点
当前提交
700a253ad3
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/Dever/Log.php

+ 1 - 1
src/Dever/Log.php

@@ -65,7 +65,7 @@ class Log
             $exists = false;
         }
         $state = error_log($log, 3, $file);
-        if (!$exists) {
+        if ($state && !$exists) {
             @chmod($file, 0755);
             @system('chmod -R 777 ' . $file);
         }