From 7ab7caa50e1f2473c66c46d7d611e1fff129888d Mon Sep 17 00:00:00 2001 From: Frank Villaro-Dixon Date: Sat, 25 May 2024 01:10:15 +0200 Subject: [PATCH] log: show requests Signed-off-by: Frank Villaro-Dixon --- src/main.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/main.rs b/src/main.rs index 02c9a19..5ce6c45 100644 --- a/src/main.rs +++ b/src/main.rs @@ -70,6 +70,10 @@ async fn put_post( let post_url = format!("{}put", shared.cfg.config.opentsdb.url); let otsdb_body = serde_json::to_string(&body).unwrap(); + info!( + "{} sent metric {}={:?}", + client.name, body.metric, body.value + ); debug!("POST {} with body: {}", post_url, otsdb_body); let response = shared