From ee873a33972075d62a16845b0caffc3fde6a1fd8 Mon Sep 17 00:00:00 2001 From: Nico Burns Date: Tue, 8 Oct 2024 12:55:54 +0100 Subject: [PATCH] Log blitz node_id in set_attribute --- .../dioxus-blitz/src/documents/dioxus_document.rs | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/packages/dioxus-blitz/src/documents/dioxus_document.rs b/packages/dioxus-blitz/src/documents/dioxus_document.rs index 5f8aecf1..e4919be3 100644 --- a/packages/dioxus-blitz/src/documents/dioxus_document.rs +++ b/packages/dioxus-blitz/src/documents/dioxus_document.rs @@ -674,10 +674,17 @@ impl WriteMutations for MutationWriter<'_> { value: &AttributeValue, id: ElementId, ) { + let node_id = self.state.element_to_node_id(id); + #[cfg(feature = "tracing")] - tracing::info!("set_attribute id:{} ns: {:?} name:{}", id.0, ns, name); + tracing::info!( + "set_attribute node_id:{} ns: {:?} name:{}, value:{:?}", + node_id, + ns, + name, + value + ); - let node_id = self.state.element_to_node_id(id); let node = self.doc.get_node_mut(node_id).unwrap(); if let NodeData::Element(ref mut element) = node.raw_dom_data { if element.name.local == local_name!("input") && name == "checked" {