Ergonomic output. print the command that is running.

This is so that if the command to execute doesn't have output
you will at least see that it tried to execute.
This commit is contained in:
Jeremy Wall 2017-02-06 20:17:00 -06:00
parent 805d547f2d
commit 3991f03161

View File

@ -58,6 +58,7 @@ fn spawn_runner_thread(lock: Arc<Mutex<bool>>, cmd: String, poll: Duration) {
// next loop iteration unless we recieved more events.
*signal = false;
// Run our command!
println!("exec: {}", cmd);
if let Err(err) = run_cmd(&cmd) {
println!("{:?}", err)
}
@ -100,7 +101,6 @@ fn wait_for_fs_events(lock: Arc<Mutex<bool>>,
}
}
WatchEventType::Changed => {
let mut signal = lock.lock().unwrap();
match lock.lock() {
Ok(mut signal) => *signal = true,
Err(err) => {