From 56d38815c5e7c457acc24c0af0020a92df656467 Mon Sep 17 00:00:00 2001 From: Hector Mendoza Jacobo Date: Wed, 16 Oct 2024 21:29:43 +0000 Subject: [PATCH] Fix serialization bug --- src/Logging/LoggingTrait.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Logging/LoggingTrait.php b/src/Logging/LoggingTrait.php index db416e867..f0198c35a 100644 --- a/src/Logging/LoggingTrait.php +++ b/src/Logging/LoggingTrait.php @@ -104,7 +104,7 @@ private function logResponse(LogEvent $event): void // Remove null values $infoEvent = array_filter($infoEvent, fn ($value) => !is_null($value)); - $stringifiedEvent = json_encode($debugEvent); + $stringifiedEvent = json_encode($infoEvent); // There was an error stringifying the event, return to not break execution if ($stringifiedEvent === false) {