1
0
mirror of https://github.com/vichan-devel/vichan.git synced 2025-01-09 13:01:45 +01:00

Update FileLogDriver.php

This commit is contained in:
Lorenzo Yario 2024-12-20 00:24:46 -06:00 committed by GitHub
parent efd4810e83
commit 2e91c1ed3d
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);
}
}