debug
This commit is contained in:
Generated
+2
-2
@@ -7263,7 +7263,7 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "nym-node-status-agent"
|
||||
version = "1.1.2"
|
||||
version = "1.1.2-test"
|
||||
dependencies = [
|
||||
"anyhow",
|
||||
"clap",
|
||||
@@ -7282,7 +7282,7 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "nym-node-status-api"
|
||||
version = "4.1.0"
|
||||
version = "4.1.0-test"
|
||||
dependencies = [
|
||||
"ammonia",
|
||||
"anyhow",
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
|
||||
[package]
|
||||
name = "nym-node-status-agent"
|
||||
version = "1.1.2"
|
||||
version = "1.1.2-test"
|
||||
authors.workspace = true
|
||||
repository.workspace = true
|
||||
homepage.workspace = true
|
||||
|
||||
@@ -62,6 +62,12 @@ pub(crate) async fn run_probe(
|
||||
let json_str = extract_json_from_log(&log);
|
||||
if json_str.is_empty() {
|
||||
tracing::error!("Failed to extract JSON from probe output");
|
||||
let preview: String = log.chars().take(400).collect();
|
||||
tracing::error!(
|
||||
"Probe output preview (first {} chars): {}",
|
||||
preview.len(),
|
||||
preview
|
||||
);
|
||||
} else {
|
||||
match serde_json::from_str::<serde_json::Value>(&json_str) {
|
||||
Ok(json) => {
|
||||
@@ -83,6 +89,12 @@ pub(crate) async fn run_probe(
|
||||
}
|
||||
Err(e) => {
|
||||
tracing::error!("Failed to parse probe output as JSON: {e}");
|
||||
let preview: String = json_str.chars().take(400).collect();
|
||||
tracing::error!(
|
||||
"Extracted JSON preview (first {} chars): {}",
|
||||
preview.len(),
|
||||
preview
|
||||
);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -104,9 +104,13 @@ impl GwProbe {
|
||||
match command.spawn() {
|
||||
Ok(child) => {
|
||||
if let Ok(output) = child.wait_with_output() {
|
||||
let err = String::from_utf8_lossy(&output.stderr);
|
||||
if !err.trim().is_empty() {
|
||||
tracing::info!("Probe stderr:\n{}", err);
|
||||
}
|
||||
|
||||
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);
|
||||
}
|
||||
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
|
||||
[package]
|
||||
name = "nym-node-status-api"
|
||||
version = "4.1.0"
|
||||
version = "4.1.0-test"
|
||||
authors.workspace = true
|
||||
repository.workspace = true
|
||||
homepage.workspace = true
|
||||
|
||||
Reference in New Issue
Block a user