feat: print envelop kids

This commit is contained in:
2023-10-01 01:26:12 +08:00
parent c5c6ced481
commit 5c7a59f8e1
2 changed files with 2 additions and 1 deletions

View File

@@ -51,6 +51,8 @@ pub fn encrypt(cmd_encrypt: CmdEncrypt) -> XResult<()> {
let envelops = config.find_envelops(&cmd_encrypt.profile)?;
if envelops.is_empty() { return simple_error!("Cannot find any valid envelops"); }
debugging!("Found envelops: {:?}", envelops);
let envelop_tkids: Vec<_> = envelops.iter().map(|e| format!("{}:{}", e.r#type.get_name(), e.kid)).collect();
information!("Matched {} envelop(s): \n- {}", envelops.len(), envelop_tkids.join("\n- "));
debugging!("Cmd encrypt: {:?}", cmd_encrypt);
for path in &cmd_encrypt.paths {

View File

@@ -83,7 +83,6 @@ impl TinyEncryptConfig {
if e1.kid > e2.kid { return Ordering::Greater; }
Ordering::Equal
});
debugging!("Found envelopes: {:#?}", envelops);
Ok(envelops)
}
}