aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornotgne22020-09-28 13:59:49 -0700
committernotgne22020-09-28 13:59:49 -0700
commit622ae7c1b46b188171121486ef93d582a4180495 (patch)
tree6d18bd3e39869c163d42d8e66fb61b3df5f32fb8
parentff347d4204369d40b6b04eedf8e2421bcd7018ab (diff)
fix some logging
-rw-r--r--src/main.rs14
1 files changed, 6 insertions, 8 deletions
diff --git a/src/main.rs b/src/main.rs
index 59b79a5..cd57692 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -43,9 +43,6 @@ struct DeployOpts {
/// The flake to deploy
#[clap(default_value = ".")]
flake: String,
- /// Prepare server (for first deployments)
- #[clap(short, long)]
- prime: bool,
/// Check signatures when using `nix copy`
#[clap(short, long)]
checksigs: bool,
@@ -207,14 +204,15 @@ async fn push_profile(
deploy_data: &DeployData<'_>,
) -> Result<(), Box<dyn std::error::Error>> {
info!(
- "Deploying profile `{}` for node `{}`",
+ "Pushing profile `{}` for node `{}`",
profile_name, node_name
);
- info!(
- "Building profile `{}` for node `{}`",
+ debug!(
+ "Building profile `{} for node `{}`",
profile_name, node_name
);
+
if supports_flakes {
Command::new("nix")
.arg("build")
@@ -260,7 +258,7 @@ async fn push_profile(
.await?;
}
- info!("Copying profile `{} for node `{}`", profile_name, node_name);
+ debug!("Copying profile `{} for node `{}`", profile_name, node_name);
let mut copy_command_ = Command::new("nix");
let mut copy_command = copy_command_.arg("copy");
@@ -360,7 +358,7 @@ async fn push_all_profiles(
top_settings: &GenericSettings,
check_sigs: bool,
) -> Result<(), Box<dyn std::error::Error>> {
- info!("Deploying all profiles for `{}`", node_name);
+ info!("Pushing all profiles for `{}`", node_name);
let mut profiles_list: Vec<&str> = node.profiles_order.iter().map(|x| x.as_ref()).collect();