more debug output

This commit is contained in:
Heiko Schaefer 2022-01-21 14:27:45 +01:00
parent 7573361836
commit c53cf33137
No known key found for this signature in database
GPG key ID: 4A849A1904CCBD7D

View file

@ -471,6 +471,8 @@ impl PcscCard {
/// A list of "raw" opened PCSC Cards (without selecting the OpenPGP card
/// application)
fn raw_pcsc_cards(mode: ShareMode) -> Result<Vec<Card>, SmartcardError> {
log::debug!("raw_pcsc_cards start");
let ctx = match Context::establish(Scope::User) {
Ok(ctx) => ctx,
Err(err) => {
@ -479,6 +481,8 @@ impl PcscCard {
}
};
log::debug!("raw_pcsc_cards got context");
// List available readers.
let mut readers_buf = [0; 2048];
let readers = match ctx.list_readers(&mut readers_buf) {