rabin 1 year ago
parent
commit
700a253ad3
1 changed files with 1 additions and 1 deletions
  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);
         }