Mildly improve logging

This commit is contained in:
notgne2 2020-11-02 15:07:24 -07:00
parent 3afb61665d
commit 53f4e75244
No known key found for this signature in database
GPG Key ID: BB661E172B42A7F8
2 changed files with 3 additions and 2 deletions

View File

@ -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
{

View File

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