Logging and Notifications

This commit is contained in:
2024-10-17 12:49:56 +02:00
parent 4e8ef3c0b4
commit 4c88ca0685
10 changed files with 247 additions and 35 deletions

View File

@@ -60,7 +60,7 @@ pub async fn start_code_to_token(
tokio::select! {
_ = sleep(Duration::from_millis(100)) => {
if let Ok(Event::Quit) = event_receiver.try_recv() {
println!("Shutting down Code Transformer");
tracing::info!("Shutting down Code Transformer");
break;
}
}
@@ -90,6 +90,6 @@ pub async fn start_code_to_token(
}
}
println!("Code Transformer Shutdown");
tracing::info!("Code Transformer Shutdown");
Ok(())
}