From c47364dc7a05cab609309766b39ec1f8bc0b0224 Mon Sep 17 00:00:00 2001 From: Untone Date: Mon, 18 Dec 2023 01:21:29 +0300 Subject: [PATCH] less-logs --- Cargo.toml | 2 +- src/data.rs | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 9cabc22..365b69e 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "discoursio-presence" -version = "0.2.15" +version = "0.2.16" edition = "2021" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html diff --git a/src/data.rs b/src/data.rs index 39a32b2..2fad83d 100644 --- a/src/data.rs +++ b/src/data.rs @@ -24,7 +24,7 @@ async fn get_author_id(user: &str) -> Result> { "operationName": operation, "variables": variables }); - println!("[get_author_id] GraphQL: {}", gql); + // println!("[get_author_id] GraphQL: {}", gql); let client = HTTPClient::new(); let response = client .post(&api_base) @@ -101,12 +101,12 @@ pub async fn get_id_by_token(token: &str) -> Result> { match user_id { Some(id) => { - println!("User ID retrieved: {}", id); + println!("[get_id_by_token] User ID retrieved: {}", id); let author_id = get_author_id(id).await?; Ok(author_id as i32) } None => { - println!("No user ID found in the response"); + println!("[get_id_by_token] No user ID found in the response"); Err(Box::new(std::io::Error::new( std::io::ErrorKind::Other, "No user ID found in the response", @@ -154,7 +154,7 @@ async fn get_shout_followers(shout_id: &str) -> Result, Box> println!("Request failed with status: {}", response.status()); Err(Box::new(std::io::Error::new( std::io::ErrorKind::Other, - format!("Request failed with status: {}", response.status()), + format!("[get_shout_followers] Request failed with status: {}", response.status()), ))) } }