diff --git a/src/core/processor/scene_vlm.rs b/src/core/processor/scene_vlm.rs index fbd28936..478e4f3e 100644 --- a/src/core/processor/scene_vlm.rs +++ b/src/core/processor/scene_vlm.rs @@ -653,6 +653,11 @@ Rules: None => anyhow::bail!("VLM returned empty content"), }; + tracing::debug!( + "[Scene VLM] VLM response content (first 500 chars): {}", + &content[..content.len().min(500)] + ); + // Parse structured JSON; fall back to heuristic extraction if it fails. if let Some(json_str) = Self::extract_json_object(&content) { tracing::debug!("[Scene VLM] Extracted JSON object ({} chars)", json_str.len()); @@ -681,8 +686,14 @@ Rules: tags.len() ); return Ok((description, objects, tags)); + } else { + tracing::warn!("[Scene VLM] JSON missing 'summary' field or summary is empty"); } + } else { + tracing::warn!("[Scene VLM] Failed to parse extracted JSON: {}", json_str); } + } else { + tracing::warn!("[Scene VLM] Failed to extract JSON object from VLM response"); } tracing::warn!(