mirror of
https://github.com/zaphar/tracing-subscriber-browser.git
synced 2025-07-23 19:49:57 -04:00
Pretty print our debug output
This commit is contained in:
parent
7ca344b4b4
commit
141693418f
@ -40,13 +40,13 @@ impl Visit for Recorder {
|
|||||||
// NOTE(jwall): We always want the message to appear at the front of the
|
// NOTE(jwall): We always want the message to appear at the front of the
|
||||||
// log content.
|
// log content.
|
||||||
if !self.buffer.is_empty() {
|
if !self.buffer.is_empty() {
|
||||||
self.buffer = format!("{:?}\n{}", value, self.buffer);
|
self.buffer = format!("{:#?}\n{}", value, self.buffer);
|
||||||
} else {
|
} else {
|
||||||
self.buffer = format!("{:?}\n", value);
|
self.buffer = format!("{:#?}\n", value);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
writeln!(self.buffer, "{}={:?} ", field.name(), value)
|
writeln!(self.buffer, "{}={:#?} ", field.name(), value)
|
||||||
.expect("Failed to write field to ConsoleRecorder buffer");
|
.expect("Failed to write field to Recorder buffer");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user