chore(app): instrument init steps with eprintln + label app::close calls

This commit is contained in:
Bossiara13 2026-04-27 21:07:33 +03:00
parent 9a1c047282
commit c234c46642
2 changed files with 28 additions and 29 deletions

View file

@ -470,8 +470,9 @@ fn execute_command(text: &str, rt: &tokio::runtime::Runtime) -> bool {
}
pub fn close(code: i32) {
info!("Closing application.");
pub fn close(code: i32, label: &'static str) {
eprintln!("[jarvis-app] app::close called: code={} label={}", code, label);
error!("Closing application: code={} label={}", code, label);
voices::play_goodbye();
ipc::send(IpcEvent::Stopping);
std::process::exit(code);