diff options
author | notgne2 | 2020-11-02 15:07:24 -0700 |
---|---|---|
committer | notgne2 | 2020-11-02 15:07:24 -0700 |
commit | 53f4e752442718caf7786aba7e934118488d89b4 (patch) | |
tree | 206e151f5196e6f61f07964c169b82139816ad9a | |
parent | 3afb61665d57fe14a4045bd8678690c82256f9f3 (diff) |
Mildly improve logging
Diffstat (limited to '')
-rw-r--r-- | src/activate.rs | 3 | ||||
-rw-r--r-- | 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), } |