Skip to content

Commit

Permalink
chore(noise): Be less noisy, there is already alot of output
Browse files Browse the repository at this point in the history
Signed-off-by: dark0dave <dark0dave@mykolab.com>
  • Loading branch information
dark0dave committed Dec 2, 2023
1 parent 5453feb commit c255be2
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/weidu.rs
Original file line number Diff line number Diff line change
Expand Up @@ -103,17 +103,13 @@ pub fn handle_io(mut child: Child) -> InstallationResult {
}
}
Err(TryRecvError::Empty) => {
log::info!("Waiting for child process to end");
log::info!("{}\r", ".".repeat(wait_counter));
std::io::stdout().flush().expect("Failed to flush stdout");

wait_counter += 1;
wait_counter %= 10;
sleep(500);
sleep(1000);

log::info!(
"\r \r"
);
std::io::stdout().flush().expect("Failed to flush stdout");
}
Err(TryRecvError::Disconnected) => break,
Expand Down

0 comments on commit c255be2

Please sign in to comment.