Less noisy command logging
parent
826ef3b100
commit
a1f07215e3
|
@ -135,33 +135,36 @@ async fn build(msg: Message, address: SocketAddr, dir: PathBuf) {
|
|||
.output()
|
||||
.unwrap();
|
||||
if !git_output.status.success() {
|
||||
error!("{:?}", git_output);
|
||||
} else {
|
||||
info!("{:?}", git_output);
|
||||
warn!(
|
||||
"Git clone failed for repository <cyan>{}<//>",
|
||||
&msg.repository
|
||||
);
|
||||
}
|
||||
|
||||
let build_output = match msg.command.tag {
|
||||
Tag::Release => {
|
||||
pCommand::new(msg.command.build_system.to_string())
|
||||
tokio::spawn(async move {
|
||||
let build_output = match msg.command.tag {
|
||||
Tag::Release => {
|
||||
pCommand::new(msg.command.build_system.to_string())
|
||||
.arg(msg.command.subcommand.to_string())
|
||||
.arg(msg.command.tag.to_string())
|
||||
.arg(format!("--manifest-path={}", &manifest.display()))
|
||||
// .arg(features.to_string())
|
||||
.output()
|
||||
.unwrap()
|
||||
}
|
||||
Tag::Debug => pCommand::new(msg.command.build_system.to_string())
|
||||
.arg(msg.command.subcommand.to_string())
|
||||
.arg(msg.command.tag.to_string())
|
||||
.arg(format!("--manifest-path={}", &manifest.display()))
|
||||
// .arg(features.to_string())
|
||||
.output()
|
||||
.unwrap()
|
||||
}
|
||||
Tag::Debug => pCommand::new(msg.command.build_system.to_string())
|
||||
.arg(msg.command.subcommand.to_string())
|
||||
.arg(format!("--manifest-path={}", &manifest.display()))
|
||||
.output()
|
||||
.unwrap(),
|
||||
};
|
||||
.unwrap(),
|
||||
};
|
||||
|
||||
if !build_output.status.success() {
|
||||
error!("{:?}", build_output);
|
||||
} else {
|
||||
info!("{:?}", build_output);
|
||||
}
|
||||
if !build_output.status.success() {
|
||||
warn!("Build <magenta>{}<//> failed!", &msg.uuid);
|
||||
} else {
|
||||
success!("Build <magenta>{}<//> finished!", &msg.uuid);
|
||||
}
|
||||
});
|
||||
|
||||
match msg.pre_exec {
|
||||
Some(e) => info!("Running pre-exec: {}", e),
|
||||
|
|
Loading…
Reference in New Issue