From 69aa9f6c6e4b31f769438f8050e52985bdf3636e Mon Sep 17 00:00:00 2001 From: Dennis Eichhorn Date: Sat, 11 Nov 2017 14:11:00 +0100 Subject: [PATCH] Fix logging file existence check --- Log/FileLogger.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; }