From 2b64bae77b0242866784897b89ee5899d6d62483 Mon Sep 17 00:00:00 2001 From: czarekk215 Date: Fri, 13 Dec 2024 12:51:47 +0000 Subject: [PATCH] Fixed payload written to influxdb 2 --- v2/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/v2/src/lib.rs b/v2/src/lib.rs index a7eb7a8..e01072f 100644 --- a/v2/src/lib.rs +++ b/v2/src/lib.rs @@ -558,7 +558,7 @@ impl Storage for InfluxDbStorage { let (base64, strvalue) = match payload.try_to_string() { Ok(s) => (false, s), - Err(err) => (true, b64_std_engine.encode(err.to_string()).into()), + Err(_) => (true, b64_std_engine.encode(payload.to_bytes()).into()), }; // Note: tags are stored as strings in InfluxDB, while fileds are typed.