diff --git a/inc/Data/Driver/FileLogDriver.php b/inc/Data/Driver/FileLogDriver.php index 18423cf1..2c9f14a0 100644 --- a/inc/Data/Driver/FileLogDriver.php +++ b/inc/Data/Driver/FileLogDriver.php @@ -49,6 +49,7 @@ class FileLogDriver implements LogDriver { $line = "{$this->name} $lv: $message\n"; \flock($this->fd, LOCK_EX); \fwrite($this->fd, $line); + \fflush($this->fd); \flock($this->fd, LOCK_UN); } }