Skip to content

Commit

Permalink
fix: Replaced --teach-me printing from docker_args to docker_cmd (#248)
Browse files Browse the repository at this point in the history
Resolves #247

Co-authored-by: FroVolod <[email protected]>
  • Loading branch information
FroVolod and FroVolod authored Nov 14, 2024
1 parent ba3b4b7 commit 4164624
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions cargo-near-build/src/near/docker_build/subprocess_step.rs
Original file line number Diff line number Diff line change
Expand Up @@ -84,12 +84,6 @@ pub fn run(
docker_args.extend(vec![&docker_image, "/bin/bash", "-c"]);

docker_args.push(&shell_escaped_cargo_cmd);
tracing::info!(
target: "near_teach_me",
parent: &tracing::Span::none(),
"Docker command:\n{}",
pretty_print::indent_payload(&format!("{:#?}", docker_args))
);
docker_args
};

Expand All @@ -98,6 +92,13 @@ pub fn run(
docker_cmd.args(docker_args);
docker_cmd
};
tracing::info!(
target: "near_teach_me",
parent: &tracing::Span::none(),
"Docker command:\n{}",
pretty_print::indent_payload(&format!("{:#?}", docker_cmd))
);

let status_result = docker_cmd.status();
let status = docker_checks::handle_command_io_error(
&docker_cmd,
Expand Down

0 comments on commit 4164624

Please sign in to comment.