From b4b872878fce63c698027d8cafd6de038da111b9 Mon Sep 17 00:00:00 2001 From: VallierDev <24893073+VallierDev@users.noreply.github.com> Date: Fri, 16 Oct 2026 15:44:14 +0800 Subject: [PATCH] Log the structure of incoming SOAC offers (keys, types, lengths only) Co-Authored-By: Claude Opus 5.5 --- src/signaling.rs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/signaling.rs b/src/signaling.rs index bbadbbd..29a9106 100644 --- a/src/signaling.rs +++ b/src/signaling.rs @@ -294,6 +294,11 @@ impl SignalingClient { .await; } "soac" => { + // Offers only: structure (keys, types, lengths), never SDP text or ids. + let kind = data.get("data").unwrap_or(data).get("type").and_then(Value::as_str); + if kind == Some("offer") { + log::info!("SOAC offer shape: {}", crate::protocol::json_shape(data, 3)); + } let (target_val, client_id_opt) = if let Some(inner) = data.get("data") { (inner.clone(), data.get("client_id").and_then(|v| v.as_str()).map(|s| s.to_string())) } else {