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