Skip to content

Commit

Permalink
Turning logs writing problem from warning into an error
Browse files Browse the repository at this point in the history
... and also making it smart enough to create the directory if it doesn't exist
  • Loading branch information
weaverryan committed Jul 2, 2019
1 parent 9bd70c7 commit bfda602
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Command/BuildDocsCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,8 @@ protected function execute(InputInterface $input, OutputInterface $output)
array_unshift($buildErrors, sprintf('Build errors from "%s"', date('Y-m-d h:i:s')));
}

file_put_contents($logPath, implode("\n", $buildErrors));
$filesystem = new Filesystem();
$filesystem->dumpFile($logPath, implode("\n", $buildErrors));
}

$metas = $builder->getMetas();
Expand Down

0 comments on commit bfda602

Please sign in to comment.