From 0f57094b175a4caf1948fbe4150bcdc23808fc82 Mon Sep 17 00:00:00 2001 From: James Cole Date: Sun, 5 Mar 2023 19:26:33 +0100 Subject: [PATCH] Fix #7144 --- app/Http/Controllers/DebugController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Http/Controllers/DebugController.php b/app/Http/Controllers/DebugController.php index 6a6d85ed1a..27bb83334a 100644 --- a/app/Http/Controllers/DebugController.php +++ b/app/Http/Controllers/DebugController.php @@ -187,7 +187,7 @@ class DebugController extends Controller foreach ($handlers as $handler) { if ($handler instanceof RotatingFileHandler) { $logFile = $handler->getUrl(); - if (null !== $logFile) { + if (null !== $logFile && file_exists($logFile)) { $logContent = file_get_contents($logFile); } }