Fix logging file existence check

This commit is contained in:
Dennis Eichhorn 2017-11-11 14:11:00 +01:00
parent d954957fe3
commit 69aa9f6c6e

View File

@ -524,7 +524,7 @@ class FileLogger implements LoggerInterface
$logs = []; $logs = [];
$id = 0; $id = 0;
if (file_exists($this->path)) { if (!file_exists($this->path)) {
return $logs; return $logs;
} }
@ -571,7 +571,7 @@ class FileLogger implements LoggerInterface
$log = []; $log = [];
$current = 0; $current = 0;
if (file_exists($this->path)) { if (!file_exists($this->path)) {
return $log; return $log;
} }