Skip to content

Commit 8d83033

Browse files
authored
Fixed the log file permissions
1 parent 6fed5a5 commit 8d83033

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Stream/FileStream.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ public function write($measurement, array $data)
4141
$fp = fopen($this->getFilePath(), 'a+b');
4242
fwrite($fp, $this->getFormatter()->format($measurement, $data) . PHP_EOL);
4343
fclose($fp);
44+
@chmod($this->getFilePath(), 0664);
4445
}
4546

4647
/**
@@ -67,4 +68,4 @@ private function filesInDir()
6768
{
6869
return count(glob($this->logsDir . DIRECTORY_SEPARATOR . '*.log'));
6970
}
70-
}
71+
}

0 commit comments

Comments
 (0)