Merge pull request #123 from Ekleog/whoops

Log the command that is run
This commit is contained in:
Graham Christensen 2018-03-15 21:37:54 -04:00 committed by GitHub
commit ba8f8ecce4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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