mirror of
https://gitlab.com/xmpp-rs/xmpp-rs.git
synced 2024-07-03 20:00:36 +02:00
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
|
@ -1,5 +1,7 @@
|
||||||
xxxxxxxxxx
|
Version next:
|
||||||
|
0000-00-00 xxxxxxxxxx
|
||||||
* Breaking changes:
|
* Breaking changes:
|
||||||
- AsyncClient::new takes a parsed Jid instead of string (#72)
|
- AsyncClient::new takes a parsed Jid instead of string (#72)
|
||||||
* Changes:
|
* Changes:
|
||||||
- env_logger is now included in dev_dependencies for examples debugging with RUST_LOG=debug
|
- env_logger is now included in dev_dependencies for examples debugging with RUST_LOG=debug
|
||||||
|
- Fix debug prints to include all XML being sent and received
|
||||||
|
|
|
@ -177,9 +177,9 @@ impl Encoder<Packet> for XMPPCodec {
|
||||||
}
|
}
|
||||||
write!(buf, ">\n").map_err(to_io_err)?;
|
write!(buf, ">\n").map_err(to_io_err)?;
|
||||||
|
|
||||||
|
write!(dst, "{}", buf)?;
|
||||||
let utf8 = std::str::from_utf8(dst)?;
|
let utf8 = std::str::from_utf8(dst)?;
|
||||||
debug!(">> {}", highlight_xml(utf8));
|
debug!(">> {}", highlight_xml(utf8))
|
||||||
write!(dst, "{}", buf)?
|
|
||||||
}
|
}
|
||||||
Packet::Stanza(stanza) => {
|
Packet::Stanza(stanza) => {
|
||||||
let _ = stanza
|
let _ = stanza
|
||||||
|
|
Loading…
Reference in New Issue
Block a user