From dd4c20f0a78ab772ff59f6ffb4f8ab5438d6208e Mon Sep 17 00:00:00 2001 From: Tom Alexander Date: Sun, 29 Sep 2024 18:14:36 -0400 Subject: [PATCH] Remove log of secret. --- src/webhook.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/webhook.rs b/src/webhook.rs index ce10cd7..2bf4065 100644 --- a/src/webhook.rs +++ b/src/webhook.rs @@ -146,9 +146,9 @@ where } async fn check_hash(body: Bytes, secret: String, signature: Vec) -> Result { - tracing::info!("Checking signature {:02x?}", signature.as_slice()); - tracing::info!("Using secret {:?}", secret); - tracing::info!("and body {}", general_purpose::STANDARD.encode(&body)); + tracing::debug!("Checking signature {:02x?}", signature.as_slice()); + // tracing::info!("Using secret {:?}", secret); + tracing::debug!("and body {}", general_purpose::STANDARD.encode(&body)); let mut mac = HmacSha256::new_from_slice(secret.as_bytes()) .map_err(|e| (StatusCode::INTERNAL_SERVER_ERROR, e.to_string()).into_response())?; mac.update(&body);