Skip to content

Commit

Permalink
Increase retry verbosity to debug
Browse files Browse the repository at this point in the history
  • Loading branch information
cole-h committed Dec 3, 2024
1 parent 832d7e4 commit a6ae3f0
Show file tree
Hide file tree
Showing 7 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion src/action/base/create_user.rs
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,7 @@ async fn execute_dscl_retry_on_specific_errors(dscl_args: &[&str]) -> Result<(),
command.process_group(0);
command.args(dscl_args);
command.stdin(std::process::Stdio::null());
tracing::trace!(%retry_tokens, command = ?command.as_std(), "Waiting for user create/update to succeed");
tracing::debug!(%retry_tokens, command = ?command.as_std(), "Waiting for user create/update to succeed");

let output = command
.output()
Expand Down
2 changes: 1 addition & 1 deletion src/action/macos/create_apfs_volume.rs
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ impl Action for CreateApfsVolume {
command.process_group(0);
command.args(["apfs", "deleteVolume", &self.name]);
command.stdin(std::process::Stdio::null());
tracing::trace!(%retry_tokens, command = ?command.as_std(), "Waiting for volume deletion to succeed");
tracing::debug!(%retry_tokens, command = ?command.as_std(), "Waiting for volume deletion to succeed");

let output = command
.output()
Expand Down
2 changes: 1 addition & 1 deletion src/action/macos/create_determinate_nix_volume.rs
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ impl Action for CreateDeterminateNixVolume {
command.arg(&self.name);
command.stderr(std::process::Stdio::null());
command.stdout(std::process::Stdio::null());
tracing::trace!(%retry_tokens, command = ?command.as_std(), "Checking for Nix Store volume existence");
tracing::debug!(%retry_tokens, command = ?command.as_std(), "Checking for Nix Store volume existence");
let output = command
.output()
.await
Expand Down
2 changes: 1 addition & 1 deletion src/action/macos/create_nix_volume.rs
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ impl Action for CreateNixVolume {
command.arg(&self.name);
command.stderr(std::process::Stdio::null());
command.stdout(std::process::Stdio::null());
tracing::trace!(%retry_tokens, command = ?command.as_std(), "Checking for Nix Store volume existence");
tracing::debug!(%retry_tokens, command = ?command.as_std(), "Checking for Nix Store volume existence");
let output = command
.output()
.await
Expand Down
2 changes: 1 addition & 1 deletion src/action/macos/encrypt_apfs_volume.rs
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ impl Action for EncryptApfsVolume {
command.process_group(0);
command.args(["mount", &self.name]);
command.stdin(std::process::Stdio::null());
tracing::trace!(%retry_tokens, command = ?command.as_std(), "Waiting for volume mounting to succeed");
tracing::debug!(%retry_tokens, command = ?command.as_std(), "Waiting for volume mounting to succeed");

let output = command
.output()
Expand Down
2 changes: 1 addition & 1 deletion src/action/macos/kickstart_launchctl_service.rs
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ impl Action for KickstartLaunchctlService {
command.stdin(std::process::Stdio::null());
command.stderr(std::process::Stdio::null());
command.stdout(std::process::Stdio::null());
tracing::trace!(%retry_tokens, command = ?command.as_std(), "Waiting for kickstart to succeed");
tracing::debug!(%retry_tokens, command = ?command.as_std(), "Waiting for kickstart to succeed");

let output = command
.output()
Expand Down
6 changes: 3 additions & 3 deletions src/action/macos/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ pub(crate) async fn wait_for_nix_store_dir() -> Result<(), ActionErrorKind> {
command.args(["info", "/nix"]);
command.stderr(std::process::Stdio::null());
command.stdout(std::process::Stdio::null());
tracing::trace!(%retry_tokens, command = ?command.as_std(), "Checking for Nix Store mount path existence");
tracing::debug!(%retry_tokens, command = ?command.as_std(), "Checking for Nix Store mount path existence");
let output = command
.output()
.await
Expand Down Expand Up @@ -184,7 +184,7 @@ pub(crate) async fn retry_bootstrap(
command.stdin(std::process::Stdio::null());
command.stderr(std::process::Stdio::null());
command.stdout(std::process::Stdio::null());
tracing::trace!(%retry_tokens, command = ?command.as_std(), "Waiting for bootstrap to succeed");
tracing::debug!(%retry_tokens, command = ?command.as_std(), "Waiting for bootstrap to succeed");

let output = command
.output()
Expand Down Expand Up @@ -237,7 +237,7 @@ pub(crate) async fn retry_bootout(domain: &str, service_name: &str) -> Result<()
command.stdin(std::process::Stdio::null());
command.stderr(std::process::Stdio::null());
command.stdout(std::process::Stdio::null());
tracing::trace!(%retry_tokens, command = ?command.as_std(), "Waiting for bootout to succeed");
tracing::debug!(%retry_tokens, command = ?command.as_std(), "Waiting for bootout to succeed");

let output = command
.output()
Expand Down

0 comments on commit a6ae3f0

Please sign in to comment.