Skip to content

Commit

Permalink
Fix: Some logging changes
Browse files Browse the repository at this point in the history
  • Loading branch information
xairaven committed Sep 17, 2024
1 parent 3544555 commit 1bfdb7a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/net/core.rs
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ pub fn start(ui_tx: Sender<UICommand>, net_rx: Receiver<NetCommand>) {

let result_recv_packet = channel.try_recv();
if let Err(err) = result_recv_packet {
log::error!("{}", NetError::InterfaceAlreadySet.to_string());
log::error!("Channel recv error: {}", err.to_string());
send_net_error_to_ui(&ui_tx, err);
break;
}
Expand Down
4 changes: 2 additions & 2 deletions src/ui/core.rs
Original file line number Diff line number Diff line change
Expand Up @@ -117,11 +117,11 @@ pub fn start() {
}

event_loop.refresh();
log::debug!("Event loop refreshed.");
log::trace!("Event loop refreshed.");
}

event_loop.step();
log::debug!("Event loop step.");
log::trace!("Event loop step.");
}

net_tx.try_send(NetCommand::Terminate).unwrap();
Expand Down

0 comments on commit 1bfdb7a

Please sign in to comment.