stanley-king 4 rokov pred
rodič
commit
28989e6e52
1 zmenil súbory, kde vykonal 2 pridanie a 2 odobranie
  1. 2 2
      core/framework/libraries/log.php

+ 2 - 2
core/framework/libraries/log.php

@@ -123,14 +123,14 @@ class Log
             }
             self::$cur_file_name = $log_file;
             self::$cur_file = fopen($log_file,'a+');
-            chmod($log_file,0777);
+//            chmod($log_file,0777);
         }
 
         $content = "[{$pid} {$now}] {$level}: {$message}\r\n";
         $ret = fwrite(self::$cur_file,$content);
         if($ret === false) {
             self::$cur_file = fopen($log_file,'a+');
-            chmod($log_file,0777);
+//            chmod($log_file,0777);
             fwrite(self::$cur_file,$content);
         }
         fflush(self::$cur_file);