Fixed MainLogger

This commit is contained in:
Shoghi Cervantes 2015-05-29 11:38:18 +02:00
parent eaa42f8449
commit f20d5b2c69

View File

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