tokio-xmpp: debug print stream:stream too
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
This commit is contained in:
parent
c86f0118b7
commit
e9cbeb1863
2 changed files with 8 additions and 6 deletions
|
|
@ -177,9 +177,9 @@ impl Encoder<Packet> for XMPPCodec {
|
|||
}
|
||||
write!(buf, ">\n").map_err(to_io_err)?;
|
||||
|
||||
write!(dst, "{}", buf)?;
|
||||
let utf8 = std::str::from_utf8(dst)?;
|
||||
debug!(">> {}", highlight_xml(utf8));
|
||||
write!(dst, "{}", buf)?
|
||||
debug!(">> {}", highlight_xml(utf8))
|
||||
}
|
||||
Packet::Stanza(stanza) => {
|
||||
let _ = stanza
|
||||
|
|
|
|||
Loading…
Reference in a new issue