way better debugging in the status line now

This commit is contained in:
filipriec
2025-06-13 16:57:58 +02:00
parent 634a01f618
commit b8e6cc22af

View File

@@ -13,7 +13,12 @@ async fn main() -> Result<()> {
{
// If ui-debug is on, set up our custom writer.
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"))]
{