From 585191e15ca98e89f552b27ef7a376f8e3ee8111 Mon Sep 17 00:00:00 2001 From: Pablo Castellano Date: Tue, 3 Sep 2024 11:31:57 +0200 Subject: [PATCH] fix: change tracing::warn to tracing::error --- src/clients/macros.rs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/clients/macros.rs b/src/clients/macros.rs index f9f6fb4..309b326 100644 --- a/src/clients/macros.rs +++ b/src/clients/macros.rs @@ -27,7 +27,7 @@ macro_rules! json_get { |error, duration: std::time::Duration| { let duration = duration.as_secs(); - tracing::warn!( + tracing::error!( method = "GET", url = %url, ?error, @@ -38,7 +38,7 @@ macro_rules! json_get { .await { Ok(resp) => resp, Err(error) => { - tracing::warn!( + tracing::error!( method = "GET", url = %url, ?error, @@ -51,7 +51,7 @@ macro_rules! json_get { } else { match req.send().await { Err(error) => { - tracing::warn!( + tracing::error!( method = "GET", url = %url, ?error, @@ -75,7 +75,7 @@ macro_rules! json_get { match result { Err(e) => { - tracing::warn!( + tracing::error!( method = "GET", url = %url, response = text.as_str(), @@ -112,7 +112,7 @@ macro_rules! json_put { .send() .await { Err(error) => { - tracing::warn!( + tracing::error!( method = "PUT", url = %url, body = body, @@ -129,7 +129,7 @@ macro_rules! json_put { let result: $crate::clients::common::ClientResponse<$expected> = text.parse()?; if result.is_err() { - tracing::warn!( + tracing::error!( method = "PUT", url = %url, body,