Log the command that is run

And this assert should never have made it into the last PR, my
`git add -p`-fu failed me.
This commit is contained in:
Léo Gaspard 2018-03-16 02:30:34 +01:00
parent 6d33c2e05a
commit 571f7a528f
No known key found for this signature in database
GPG key ID: 8A55848B6090F9CF

View file

@ -338,6 +338,7 @@ impl notifyworker::SimpleNotifyWorker for BuildWorker {
can_build.clone(), can_build.clone(),
); );
println!("About to execute {:?}", cmd);
actions.log_started(can_build.clone(), cannot_build.clone()); actions.log_started(can_build.clone(), cannot_build.clone());
let acmd = AsyncCmd::new(cmd); let acmd = AsyncCmd::new(cmd);
let mut spawned = acmd.spawn(); let mut spawned = acmd.spawn();
@ -373,7 +374,6 @@ impl notifyworker::SimpleNotifyWorker for BuildWorker {
println!("Lines:\n-----8<-----"); println!("Lines:\n-----8<-----");
snippet_log.iter().inspect(|x| println!("{}", x)).last(); snippet_log.iter().inspect(|x| println!("{}", x)).last();
println!("----->8-----"); println!("----->8-----");
assert!(success);
let last10lines: Vec<String> = snippet_log.into_iter().collect::<Vec<String>>(); let last10lines: Vec<String> = snippet_log.into_iter().collect::<Vec<String>>();