diff --git a/Log/FileLogger.php b/Log/FileLogger.php index ba105f44f..a935e9d92 100644 --- a/Log/FileLogger.php +++ b/Log/FileLogger.php @@ -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; }