refactor: change println to tracing

This commit is contained in:
Nova
2024-06-15 12:40:09 -04:00
parent 65a9957be1
commit e2c9e06cd3
2 changed files with 3 additions and 2 deletions

View File

@@ -132,7 +132,7 @@ async fn main() {
_ = stereokit_loop => (),
_ = tokio::signal::ctrl_c() => unsafe {sk_quit(QuitReason::SystemClose)},
}
println!("Stopping...");
info!("Stopping...");
if let Some(project_dirs) = project_dirs {
save_session(&project_dirs).await;
}

View File

@@ -10,6 +10,7 @@ use std::path::Path;
use std::process::{Child, Command, Stdio};
use std::time::Duration;
use tokio::task::LocalSet;
use tracing::info;
pub async fn save_session(project_dirs: &ProjectDirs) {
let session_id = nanoid::nanoid!();
@@ -31,7 +32,7 @@ pub async fn save_session(project_dirs: &ProjectDirs) {
});
}
local_set.await;
println!("Session ID for restore is {session_id}");
info!("Session ID for restore is {session_id}");
}
pub fn launch_start(cli_args: &CliArgs, project_dirs: &ProjectDirs) -> Vec<Child> {