From 198109a91983e4f9be228e914efea1c246cc3444 Mon Sep 17 00:00:00 2001 From: Jeff Emmett <46964190+Jeff-Emmett@users.noreply.github.com> Date: Mon, 16 Dec 2024 17:12:40 -0500 Subject: [PATCH] add debug logging for videochat render --- src/shapes/VideoChatShapeUtil.tsx | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/shapes/VideoChatShapeUtil.tsx b/src/shapes/VideoChatShapeUtil.tsx index e6159c0..7326c52 100644 --- a/src/shapes/VideoChatShapeUtil.tsx +++ b/src/shapes/VideoChatShapeUtil.tsx @@ -55,8 +55,8 @@ export class VideoChatShape extends BaseBoxShapeUtil { }), }) - //console.log("Response status:", response.status) - //console.log("Response data:", await response.clone().json()) + console.log("Response status:", response.status) + console.log("Response data:", await response.clone().json()) if (!response.ok) throw new Error(`Failed to create room (${response.status})`) @@ -66,8 +66,8 @@ export class VideoChatShape extends BaseBoxShapeUtil { if (!url) throw new Error("Room URL is missing") - // console.log("Room created successfully:", url) - // console.log("Updating shape with new URL") + console.log("Room created successfully:", url) + console.log("Updating shape with new URL") await this.editor.updateShape({ id: shape.id, @@ -78,9 +78,9 @@ export class VideoChatShape extends BaseBoxShapeUtil { }, }) - //console.log("Shape updated:", this.editor.getShape(shape.id)) + console.log("Shape updated:", this.editor.getShape(shape.id)) } catch (error) { - //console.error("Error in ensureRoomExists:", error) + console.error("Error in ensureRoomExists:", error) throw error } }