mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-04 17:06:16 +00:00
Fixed MainLogger
This commit is contained in:
@ -216,8 +216,11 @@ class MainLogger extends \AttachableThreadedLogger{
|
||||
});
|
||||
}
|
||||
|
||||
if(strlen($this->logStream) > 0){
|
||||
fwrite($this->logResource, $this->logStream);
|
||||
if($this->logStream->count() > 0){
|
||||
while($this->logStream->count() > 0){
|
||||
$chunk = $this->logStream->shift();
|
||||
fwrite($this->logResource, $chunk);
|
||||
}
|
||||
}
|
||||
|
||||
fclose($this->logResource);
|
||||
|
Reference in New Issue
Block a user