Use logging
This commit is contained in:
+3
-2
@@ -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
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user