way better debugging in the status line now
This commit is contained in:
@@ -13,7 +13,12 @@ async fn main() -> Result<()> {
|
|||||||
{
|
{
|
||||||
// If ui-debug is on, set up our custom writer.
|
// If ui-debug is on, set up our custom writer.
|
||||||
let writer = UiDebugWriter::new();
|
let writer = UiDebugWriter::new();
|
||||||
tracing_subscriber::fmt().with_writer(move || writer.clone()).init();
|
tracing_subscriber::fmt()
|
||||||
|
.with_level(false) // Don't show INFO, ERROR, etc.
|
||||||
|
.with_target(false) // Don't show the module path.
|
||||||
|
.without_time() // This is the correct and simpler method.
|
||||||
|
.with_writer(move || writer.clone())
|
||||||
|
.init();
|
||||||
}
|
}
|
||||||
#[cfg(not(feature = "ui-debug"))]
|
#[cfg(not(feature = "ui-debug"))]
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user