diff --git a/src/ping.rs b/src/ping.rs index 0ce3465..f3200ad 100644 --- a/src/ping.rs +++ b/src/ping.rs @@ -48,7 +48,6 @@ impl Ping { false } else { let hash = hash_token_with_salt(auth_token, self.time, &self.salt); - eprintln!("Ping.verify: INFO: comparing provided hash={} with calculated hash={}", self.hash, hash); self.hash.eq(&hash) } } @@ -63,7 +62,5 @@ fn hash_token_with_salt(auth_token: Arc, time : u128, salt: &String) -> hasher.update(b":"); hasher.update(auth_token.to_string()); let digest = hasher.finalize(); - let hash = hex::encode(digest); - eprintln!("hash_token_with_salt: INFO: salt={} and token={} created hash={}", salt, auth_token.to_string(), hash); - hash + hex::encode(digest) } diff --git a/src/proxy.rs b/src/proxy.rs index 922d4c3..0908ccf 100644 --- a/src/proxy.rs +++ b/src/proxy.rs @@ -97,7 +97,7 @@ async fn proxy(client: Client>>, let body_bytes = hyper::body::to_bytes(req.into_body()).await?; let body = String::from_utf8(body_bytes.to_vec()).unwrap(); let ping : Ping = serde_json::from_str(body.as_str()).unwrap(); - eprintln!("proxy: INFO: received body: {:?}", ping); + eprintln!("proxy: DEBUG: received body: {:?}", ping); if !ping.verify(auth_token.clone()) { eprintln!("proxy: ERROR: invalid ping hash"); bad_request("invalid ping hash")