From 4b515443fd39cd04e084af352145c3faf3d5e0c3 Mon Sep 17 00:00:00 2001 From: Joas Schilling Date: Wed, 7 Feb 2024 12:43:49 +0100 Subject: [PATCH] fix(hpb): Log the HPB request when we log Signed-off-by: Joas Schilling --- lib/Controller/SignalingController.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/Controller/SignalingController.php b/lib/Controller/SignalingController.php index cf05d3a8864..2b8fbd7b8a0 100644 --- a/lib/Controller/SignalingController.php +++ b/lib/Controller/SignalingController.php @@ -662,6 +662,7 @@ private function backendRoom(array $roomRequest): DataResponse { 'actorType' => $actorType ?? 'null', 'actorId' => $actorId ?? 'null', 'app' => 'spreed-hpb', + 'hpbRequest' => json_encode($roomRequest), ]); return new DataResponse([ 'type' => 'error', @@ -699,6 +700,7 @@ private function backendRoom(array $roomRequest): DataResponse { $this->logger->debug('Failed to get room by token {token}', [ 'token' => $token, 'app' => 'spreed-hpb', + 'hpbRequest' => json_encode($roomRequest), ]); return new DataResponse([ 'type' => 'error', @@ -727,6 +729,7 @@ private function backendRoom(array $roomRequest): DataResponse { $this->logger->debug('Failed to get room {token} with participant', [ 'token' => $token, 'app' => 'spreed-hpb', + 'hpbRequest' => json_encode($roomRequest), ]); // Return generic error to avoid leaking which rooms exist. return new DataResponse([ @@ -778,6 +781,7 @@ private function backendRoom(array $roomRequest): DataResponse { 'actorType' => $participant->getAttendee()->getActorType(), 'actorId' => $participant->getAttendee()->getActorId(), 'app' => 'spreed-hpb', + 'hpbRequest' => json_encode($roomRequest), ]); $permissions = [];