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:
commit
4ff382e210
@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user