dap-basic: better output formatting
This commit is contained in:
parent
09390be6a5
commit
0777948fc0
1 changed files with 5 additions and 1 deletions
|
@ -13,7 +13,11 @@ struct LaunchArguments {
|
|||
async fn output(mut output_event: Receiver<Event>) {
|
||||
let body: OutputEventBody =
|
||||
from_value(output_event.recv().await.unwrap().body.unwrap()).unwrap();
|
||||
println!("{:?}", body);
|
||||
println!(
|
||||
"> [{}] {}",
|
||||
body.category.unwrap_or("unknown".to_owned()),
|
||||
body.output
|
||||
);
|
||||
}
|
||||
|
||||
#[tokio::main]
|
||||
|
|
Loading…
Add table
Reference in a new issue