1 Commits

Author SHA1 Message Date
Gilles Soulier 3c15943e2e debug(smart v0.1.16): log JSON brut complet en cas d'échec parse
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-23 13:51:30 +02:00
3 changed files with 5 additions and 3 deletions
+1 -1
View File
@@ -248,7 +248,7 @@ dependencies = [
[[package]]
name = "nanometrics-agent"
version = "0.1.15"
version = "0.1.16"
dependencies = [
"libc",
"rumqttc",
+1 -1
View File
@@ -1,6 +1,6 @@
[package]
name = "nanometrics-agent"
version = "0.1.15"
version = "0.1.16"
edition = "2021"
[lib]
+3 -1
View File
@@ -138,7 +138,9 @@ pub fn collect() -> Option<Vec<crate::payload::SmartMetrics>> {
}
Err(e) => {
eprintln!("[smart] {} parse JSON échoué: {}", dev, e);
eprintln!("[smart] premiers 200 octets stdout: {:?}", &json.chars().take(200).collect::<String>());
eprintln!("[smart] --- JSON BRUT BEGIN ({} octets) ---", json.len());
eprintln!("{}", &*json);
eprintln!("[smart] --- JSON BRUT END ---");
}
}
}