Update FileLogDriver.php
This commit is contained in:
1 parent
efd4810e83
commit
2e91c1ed3d
1 file changed
+1
@@ -49,6 +49,7 @@ class FileLogDriver implements LogDriver {
|
|||||||
$line = "{$this->name} $lv: $message\n";
|
$line = "{$this->name} $lv: $message\n";
|
||||||
\flock($this->fd, LOCK_EX);
|
\flock($this->fd, LOCK_EX);
|
||||||
\fwrite($this->fd, $line);
|
\fwrite($this->fd, $line);
|
||||||
|
\fflush($this->fd);
|
||||||
\flock($this->fd, LOCK_UN);
|
\flock($this->fd, LOCK_UN);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user