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