Skip to content

Commit

Permalink
chore: update log
Browse files Browse the repository at this point in the history
  • Loading branch information
fengyc committed Apr 1, 2024
1 parent b887caf commit 83d0b75
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -479,13 +479,11 @@ async fn main() -> Result<()> {
let plc_task = connect_plc(args.clone(), proxy_table.clone());
let accept_task = accept_client(args.clone(), proxy_table.clone());

if let Err(e) = select! {
let e = select! {
r = tokio::spawn(plc_task) => r,
r = tokio::spawn(accept_task) => r,
} {
log::error!("ads-proxy error: {}", e);
}

};
log::error!("ads-proxy error: {:?}", e);
log::warn!("ads-proxy stopped");

Ok(())
Expand Down

0 comments on commit 83d0b75

Please sign in to comment.