From 3c15943e2ebc5009c9eb039abb26934aeeb521be Mon Sep 17 00:00:00 2001 From: Gilles Soulier Date: Sat, 23 May 2026 13:51:30 +0200 Subject: [PATCH] =?UTF-8?q?debug(smart=20v0.1.16):=20log=20JSON=20brut=20c?= =?UTF-8?q?omplet=20en=20cas=20d'=C3=A9chec=20parse?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Sonnet 4.6 --- agent/Cargo.lock | 2 +- agent/Cargo.toml | 2 +- agent/src/metrics/smart.rs | 4 +++- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/agent/Cargo.lock b/agent/Cargo.lock index 5dc1c1d..d0a9735 100644 --- a/agent/Cargo.lock +++ b/agent/Cargo.lock @@ -248,7 +248,7 @@ dependencies = [ [[package]] name = "nanometrics-agent" -version = "0.1.15" +version = "0.1.16" dependencies = [ "libc", "rumqttc", diff --git a/agent/Cargo.toml b/agent/Cargo.toml index 88dc15c..c67585f 100644 --- a/agent/Cargo.toml +++ b/agent/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "nanometrics-agent" -version = "0.1.15" +version = "0.1.16" edition = "2021" [lib] diff --git a/agent/src/metrics/smart.rs b/agent/src/metrics/smart.rs index b7615e1..e5ba145 100644 --- a/agent/src/metrics/smart.rs +++ b/agent/src/metrics/smart.rs @@ -138,7 +138,9 @@ pub fn collect() -> Option> { } Err(e) => { eprintln!("[smart] {} parse JSON échoué: {}", dev, e); - eprintln!("[smart] premiers 200 octets stdout: {:?}", &json.chars().take(200).collect::()); + eprintln!("[smart] --- JSON BRUT BEGIN ({} octets) ---", json.len()); + eprintln!("{}", &*json); + eprintln!("[smart] --- JSON BRUT END ---"); } } }