Less noisy command logging

main
~erin 2023-04-03 01:16:47 -04:00
parent 826ef3b100
commit a1f07215e3
Signed by: erin
GPG Key ID: 9A8E308CEFA37A47
1 changed files with 24 additions and 21 deletions

View File

@ -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),