Skip to content

Commit

Permalink
fix(get,totp,store): Log number of entries before filtering
Browse files Browse the repository at this point in the history
  • Loading branch information
Frederick888 committed Jan 29, 2023
1 parent 25d39d8 commit 598d671
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -422,6 +422,7 @@ fn get_logins_for<T: AsRef<str>>(
.into_iter()
.filter(|e| e.expired.is_none() || !e.expired.as_ref().unwrap().0)
.collect();
info!("KeePassXC returned {} login(s)", login_entries.len());

if filters.kph {
let num_entries = login_entries.len();
Expand Down Expand Up @@ -540,7 +541,6 @@ where

let (mut login_entries, login_entries_raw) =
get_logins_for(&config, &client_id, &url, &entry_filters, unlock_options)?;
info!("KeePassXC returned {} login(s)", login_entries.len());

if args.raw() {
// GetMode::PasswordAndTotp in raw mode is banned in CLI
Expand Down

0 comments on commit 598d671

Please sign in to comment.