Merge pull request #7151 from firefly-iii/fix-7144

Fix #7144
This commit is contained in:
James Cole 2023-03-06 05:55:20 +01:00 committed by GitHub
commit c78fa8eaea
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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);
}
}