Skip to content

Commit 03220cb

Browse files
authored
Open file for writing only
1 parent 8d83033 commit 03220cb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Stream/FileStream.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ public function __construct($logsDir, Formatter $formatter)
3838
*/
3939
public function write($measurement, array $data)
4040
{
41-
$fp = fopen($this->getFilePath(), 'a+b');
41+
$fp = fopen($this->getFilePath(), 'ab');
4242
fwrite($fp, $this->getFormatter()->format($measurement, $data) . PHP_EOL);
4343
fclose($fp);
4444
@chmod($this->getFilePath(), 0664);

0 commit comments

Comments
 (0)