1
0
mirror of https://github.com/vichan-devel/vichan.git synced 2025-02-02 12:57:35 +01:00

Merge pull request #857 from Zankaria/patch-1

FileLogDriver.php: flush writes to file
This commit is contained in:
Lorenzo Yario 2024-12-20 00:23:21 -06:00 committed by GitHub
commit 4ff382e210
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

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