From 0097761c6973b490ffd0ec5b5ca45d3ab9c7915a Mon Sep 17 00:00:00 2001 From: Brendan Golden Date: Sat, 23 Nov 2024 23:49:00 +0000 Subject: [PATCH] dbg: excessive logging --- src/lib.rs | 24 +++++++++++++++++++----- 1 file changed, 19 insertions(+), 5 deletions(-) diff --git a/src/lib.rs b/src/lib.rs index 8508657..7d07ef1 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -204,6 +204,7 @@ impl Client { // if the key isnt set then we cant do anything. let api_key = match &self.base_key { None => { + dbg!("No API Key"); return None; } Some(key) => key, @@ -219,13 +220,26 @@ impl Client { .await { Ok(x) => { - if let Ok(y) = x.json::>().await { - // this is the only time we will get a positive response, the None at the end catches everything else - if let WolvesUserExists::S(z) = y.result { - if let Ok(id) = z.parse::() { - return Some(id); + match x.json::>().await { + Ok(y) => { + // this is the only time we will get a positive response, the None at the end catches everything else + match y.result { + WolvesUserExists::S(z) => match z.parse::() { + Ok(id) => { + return Some(id); + } + Err(e) => { + dbg!(e); + } + }, + WolvesUserExists::B(b) => { + dbg!(b); + } } } + Err(e) => { + dbg!(e); + } } } Err(e) => {