diff --git a/Cargo.lock b/Cargo.lock index 70c6abfa24..d451b3aaa1 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -6575,7 +6575,7 @@ dependencies = [ [[package]] name = "nym-node-status-agent" -version = "0.1.0" +version = "0.1.2" dependencies = [ "anyhow", "clap 4.5.20", diff --git a/nym-node-status-agent/Cargo.toml b/nym-node-status-agent/Cargo.toml index a2ce8cdf97..bc092ae881 100644 --- a/nym-node-status-agent/Cargo.toml +++ b/nym-node-status-agent/Cargo.toml @@ -4,7 +4,7 @@ [package] name = "nym-node-status-agent" -version = "0.1.0" +version = "0.1.2" authors.workspace = true repository.workspace = true homepage.workspace = true diff --git a/nym-node-status-agent/src/cli.rs b/nym-node-status-agent/src/cli.rs index c4465797d0..d81f18b39c 100644 --- a/nym-node-status-agent/src/cli.rs +++ b/nym-node-status-agent/src/cli.rs @@ -97,6 +97,7 @@ async fn submit_results( ) -> anyhow::Result<()> { let target_url = format!("{}/{}/{}", server_addr, URL_BASE, testrun_id); let client = reqwest::Client::new(); + let res = client .post(target_url) .body(probe_outcome) diff --git a/nym-node-status-agent/src/probe.rs b/nym-node-status-agent/src/probe.rs index c75900e936..f779f3af53 100644 --- a/nym-node-status-agent/src/probe.rs +++ b/nym-node-status-agent/src/probe.rs @@ -40,6 +40,12 @@ impl GwProbe { match command.spawn() { Ok(child) => { if let Ok(output) = child.wait_with_output() { + if !output.status.success() { + let out = String::from_utf8_lossy(&output.stdout); + let err = String::from_utf8_lossy(&output.stderr); + tracing::error!("Probe exited with {:?}:\n{}\n{}", output.status, out, err); + } + return String::from_utf8(output.stdout) .unwrap_or("Unable to get log from test run".to_string()); }