diff --git a/tokio-xmpp/src/xmpp_codec.rs b/tokio-xmpp/src/xmpp_codec.rs index c3f2deae..77a8a123 100644 --- a/tokio-xmpp/src/xmpp_codec.rs +++ b/tokio-xmpp/src/xmpp_codec.rs @@ -88,16 +88,19 @@ impl Decoder for XMPPCodec { }, )) .collect(); + debug!("<< {}", String::from(root)); return Ok(Some(Packet::StreamStart(attrs))); } else if self.stanza_builder.depth() == 1 { self.driver.release_temporaries(); if let Some(stanza) = self.stanza_builder.unshift_child() { + debug!("<< {}", String::from(&stanza)); return Ok(Some(Packet::Stanza(stanza))); } } else if let Some(_) = self.stanza_builder.root.take() { self.driver.release_temporaries(); + debug!("<< "); return Ok(Some(Packet::StreamEnd)); } }