[logging] tiny improvements, still the WASM stacktrace error

This commit is contained in:
2024-11-12 22:56:49 +01:00
parent 1388bc2115
commit ff0cee58d5
2 changed files with 13 additions and 13 deletions

View File

@ -108,10 +108,14 @@ pub fn run() {
let app_handle = app.handle().clone();
tauri::async_runtime::spawn(async move {
while let Some(event) = rx_client_event.recv().await {
log::debug!("Received client event");
match event {
ClientEvent::ListGames(games) => {
log::debug!("Received client event: ListGames");
for game in &games {
log::trace!("client event ListGames iter: {game:?}");
}
if let Err(e) = app_handle.emit("games-list-updated", Some(games)) {
log::error!("Failed to emit games-list-updated event: {e}");
} else {