mirror of
https://github.com/vichan-devel/vichan.git
synced 2025-02-08 23:39:46 +01:00
FileLogDriver.php: flush writes to file
This commit is contained in:
parent
d359a12768
commit
cbe63087b6
@ -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