From 2e91c1ed3d9cb3091d4c38722be27b529e862d77 Mon Sep 17 00:00:00 2001 From: Lorenzo Yario Date: Fri, 20 Dec 2024 00:24:46 -0600 Subject: [PATCH] Update FileLogDriver.php --- inc/Data/Driver/FileLogDriver.php | 1 + 1 file changed, 1 insertion(+) 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); } }