network: avoid putting null bytes in trace output
This commit is contained in:
parent
f93deb1cac
commit
5ccd1905fc
|
@ -320,7 +320,12 @@ impl Decoder for Codec {
|
||||||
trace!(
|
trace!(
|
||||||
?self.state,
|
?self.state,
|
||||||
?magic,
|
?magic,
|
||||||
command = %String::from_utf8_lossy(&command),
|
command = %String::from_utf8(
|
||||||
|
command.iter()
|
||||||
|
.cloned()
|
||||||
|
.flat_map(std::ascii::escape_default)
|
||||||
|
.collect()
|
||||||
|
).unwrap(),
|
||||||
body_len,
|
body_len,
|
||||||
?checksum,
|
?checksum,
|
||||||
"read header from src buffer"
|
"read header from src buffer"
|
||||||
|
|
Loading…
Reference in New Issue