Use logging

This commit is contained in:
2025-01-14 23:33:30 -05:00
parent 102aff1580
commit f031bb17b2
7 changed files with 148 additions and 17 deletions
+3 -2
View File
@@ -15,6 +15,7 @@ use anyhow::Result;
use atomic::Atomic;
use bytemuck::NoUninit;
use egui_toast::{Toast, ToastKind, ToastOptions};
use tracing::{error, warn};
use crate::{audio::Audio, graphics::TextureSink};
use shrooms_vb_core::{Sim, StopReason, EXPECTED_FRAME_SIZE};
@@ -608,7 +609,7 @@ impl Emulator {
return;
}
}
eprintln!("{}", message);
error!("{}", message);
}
}
@@ -704,7 +705,7 @@ impl EmulatorClient {
match self.queue.send(command) {
Ok(()) => true,
Err(err) => {
eprintln!(
warn!(
"could not send command {:?} as emulator is shut down",
err.0
);