fix: Added logger as a dependency for storage class

This commit is contained in:
Aerex
2020-06-11 11:43:56 -05:00
parent 8cafda3f26
commit df7ab092cc
5 changed files with 33 additions and 15 deletions

View File

@@ -20,7 +20,7 @@ class Logger {
}
}
private function createLoggerFile() {
public function createLoggerFile() {
if (!file_exists($this->configs['file'])) {
if (!fopen($this->configs['file'], 'w')) {
throw new \Exception(sprintf('Could not create logger file %s', $this->configs['file']));