Skip to content

Commit

Permalink
file write fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
flotzilla committed Apr 16, 2020
1 parent 8376f5f commit f4d3e76
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/Handler/FileHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -127,12 +127,11 @@ private function appendLog(string $log): bool
return $result;
}

if ($file = fopen($this->fileName, 'a')) {
if ($file = fopen($this->fileName, 'w')) {
$result = fwrite($file, $log) !== false;
fclose($file);
}

fclose($file);

return $result;
}

Expand Down

0 comments on commit f4d3e76

Please sign in to comment.