|
@@ -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);
|