From 53f4e752442718caf7786aba7e934118488d89b4 Mon Sep 17 00:00:00 2001 From: notgne2 Date: Mon, 2 Nov 2020 15:07:24 -0700 Subject: Mildly improve logging --- src/activate.rs | 3 ++- src/main.rs | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/activate.rs b/src/activate.rs index a500a32..ae9e814 100644 --- a/src/activate.rs +++ b/src/activate.rs @@ -81,7 +81,7 @@ pub enum DeactivateError { } pub async fn deactivate(profile_path: &str) -> Result<(), DeactivateError> { - error!("De-activating due to error"); + warn!("De-activating due to error"); let nix_env_rollback_exit_status = Command::new("nix-env") .arg("-p") @@ -367,6 +367,7 @@ pub async fn activate( info!("Activation succeeded!"); if magic_rollback { + info!("Magic rollback is enabled, setting up confirmation hook..."); match activation_confirmation(profile_path.clone(), temp_path, confirm_timeout, closure) .await { diff --git a/src/main.rs b/src/main.rs index 78bc933..91adae3 100644 --- a/src/main.rs +++ b/src/main.rs @@ -478,7 +478,7 @@ enum RunError { CheckDeploymentError(#[from] CheckDeploymentError), #[error("Failed to evaluate deployment data: {0}")] GetDeploymentDataError(#[from] GetDeploymentDataError), - #[error("Error running deploy: {0}")] + #[error("{0}")] RunDeployError(#[from] RunDeployError), } -- cgit v1.2.3