Reduce log verbosity

This commit is contained in:
NicolasCantu 2025-01-16 18:09:17 +01:00
parent 57a196d3ed
commit 12705aa737

View File

@ -137,8 +137,7 @@ impl SecretsStore {
pub fn try_decrypt(&self, cipher: &[u8]) -> Result<(AnkSharedSecretHash, Vec<u8>)> {
let nonce = Nonce::from_slice(&cipher[..12]);
for (address, secret) in self.shared_secrets.iter() {
log::debug!("Attempting decryption with key {} for {}", secret, address);
for (_, secret) in self.shared_secrets.iter() {
let engine = Aes256Gcm::new(secret.as_byte_array().into());
if let Ok(plain) = engine.decrypt(
@ -154,7 +153,6 @@ impl SecretsStore {
// We try unconfirmed secrets
for secret in self.unconfirmed_secrets.iter() {
log::debug!("Attempting decryption with unconfirmed key {}", secret);
let engine = Aes256Gcm::new(secret.as_byte_array().into());
if let Ok(plain) = engine.decrypt(