From 675c7a395a2a6349f55e8b239cf3896b2f250516 Mon Sep 17 00:00:00 2001 From: czarekk215 <128484058+czarekk215@users.noreply.github.com> Date: Tue, 24 Dec 2024 09:36:24 +0100 Subject: [PATCH] Fixed payload written to influxdb 2 (#303) --- 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.