Skip to content

Commit

Permalink
Fix serialization bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Hectorhammett committed Oct 16, 2024
1 parent fb0ac53 commit 56d3881
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Logging/LoggingTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 56d3881

Please sign in to comment.