Debug log fix

Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
This commit is contained in:
John Molakvoæ (skjnldsv) 2016-11-08 21:45:43 +01:00 committed by Roeland Jago Douma
parent 31f75e50b6
commit cf73e71ff1
No known key found for this signature in database
GPG key ID: F941078878347C0C

View file

@ -95,7 +95,12 @@ class SCSSCacher {
$this->logger->error($e, ['app' => 'SCSSPHP']); $this->logger->error($e, ['app' => 'SCSSPHP']);
return false; return false;
} }
return file_put_contents($this->fileCache, $this->rebaseUrls($compiledScss));
if(file_put_contents($this->fileCache, $this->rebaseUrls($compiledScss))) {
$this->logger->debug($root.'/'.$file.' compiled and successfully cached', ['app' => 'SCSSPHP']);
return true;
}
return false;
} }
private function rebaseUrls($css) { private function rebaseUrls($css) {