Skip to content

Commit

Permalink
fix: change tracing::warn to tracing::error
Browse files Browse the repository at this point in the history
  • Loading branch information
PabloCastellano committed Sep 3, 2024
1 parent 86afdc5 commit 585191e
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/clients/macros.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -38,7 +38,7 @@ macro_rules! json_get {
.await {
Ok(resp) => resp,
Err(error) => {
tracing::warn!(
tracing::error!(
method = "GET",
url = %url,
?error,
Expand All @@ -51,7 +51,7 @@ macro_rules! json_get {
} else {
match req.send().await {
Err(error) => {
tracing::warn!(
tracing::error!(
method = "GET",
url = %url,
?error,
Expand All @@ -75,7 +75,7 @@ macro_rules! json_get {

match result {
Err(e) => {
tracing::warn!(
tracing::error!(
method = "GET",
url = %url,
response = text.as_str(),
Expand Down Expand Up @@ -112,7 +112,7 @@ macro_rules! json_put {
.send()
.await {
Err(error) => {
tracing::warn!(
tracing::error!(
method = "PUT",
url = %url,
body = body,
Expand All @@ -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,
Expand Down

0 comments on commit 585191e

Please sign in to comment.