mirror of
https://github.com/serokell/deploy-rs.git
synced 2024-11-26 08:09:53 +03:00
Mildly improve logging
This commit is contained in:
parent
3afb61665d
commit
53f4e75244
@ -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
|
||||
{
|
||||
|
@ -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),
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user