Skip to content

Commit

Permalink
Reduce logging levels for several statements
Browse files Browse the repository at this point in the history
  • Loading branch information
Celeo committed Jan 25, 2024
1 parent afa0282 commit 06b270f
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions src/client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ use std::{
};

use base64::engine::{general_purpose::STANDARD as base64, Engine};
use log::{debug, error};
use log::{debug, error, warn};
#[cfg(feature = "random_state")]
use rand::{distributions::Alphanumeric, Rng};
use reqwest::{
Expand Down Expand Up @@ -331,7 +331,7 @@ impl Esi {
.send()
.await?;
if resp.status() != 200 {
error!(
warn!(
"Got status {} when making call to authenticate",
resp.status()
);
Expand Down Expand Up @@ -437,7 +437,7 @@ impl Esi {
.send()
.await?;
if resp.status() != 200 {
error!(
warn!(
"Got status {} when making call to authenticate via a refresh token",
resp.status()
);
Expand Down Expand Up @@ -530,11 +530,6 @@ impl Esi {
let req = req_builder.build()?;
let resp = self.client.execute(req).await?;
if !resp.status().is_success() {
error!(
"Got status {} when requesting data from {}",
resp.status(),
url
);
return Err(EsiError::InvalidStatusCode(resp.status().as_u16()));
}
let text = resp.text().await?;
Expand Down

0 comments on commit 06b270f

Please sign in to comment.