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
1 changed files with 6 additions and 1 deletions

View File

@ -95,7 +95,12 @@ class SCSSCacher {
$this->logger->error($e, ['app' => 'SCSSPHP']);
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) {