debug: add VLM enrich logging

This commit is contained in:
Accusys
2026-08-25 10:12:46 +08:00
parent 44ad6ac213
commit c3367b47b1
+2
View File
@@ -155,8 +155,10 @@ async fn enrich_vlm_from_pg(
// file_uuid is 32 chars, then "_t" (2 chars), then hex trace_id
let trace_id: i32 = if chunk_id.len() > 34 && chunk_id.starts_with(file_uuid) {
let hex_part = &chunk_id[34..]; // after "{file_uuid}_t"
tracing::info!("[VLM-enrich] chunk_id={}, hex_part={}", chunk_id, hex_part);
i32::from_str_radix(hex_part, 16).ok()?
} else {
tracing::info!("[VLM-enrich] chunk_id parse failed: len={}, starts_with={}", chunk_id.len(), chunk_id.starts_with(file_uuid));
return None;
};