From 196a4eb59882accc9d09ac01d884f4d70db0ef55 Mon Sep 17 00:00:00 2001 From: Dennis Benz Date: Thu, 7 Nov 2024 15:07:01 +0100 Subject: [PATCH] Log php exceptions in slim routes --- lib/Errors/ExceptionHandler.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/Errors/ExceptionHandler.php b/lib/Errors/ExceptionHandler.php index 350fbf56..1fcfae51 100644 --- a/lib/Errors/ExceptionHandler.php +++ b/lib/Errors/ExceptionHandler.php @@ -37,6 +37,9 @@ public function __invoke( $errors->add($exception); } else { + // Log always php exceptions + error_log($exception); + $httpCode = 500; $details = null;