Skip to content

Commit 2350536

Browse files
committed
Add logging
1 parent eb3fa5b commit 2350536

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

libwebauthn/src/transport/hid/channel.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ use hidapi::HidDevice as HidApiDevice;
1111
use rand::{thread_rng, Rng};
1212
use tokio::sync::mpsc;
1313
use tokio::time::sleep;
14-
use tracing::{debug, instrument, trace, warn, Level};
14+
use tracing::{debug, info, instrument, trace, warn, Level};
1515

1616
#[cfg(feature = "virtual-hid-device")]
1717
use tokio::net::UdpSocket;
@@ -115,6 +115,7 @@ impl<'d> HidChannel<'d> {
115115
Err(_) => Ok(false),
116116
}
117117
} else {
118+
info!("Creating dummy request to make the device blink");
118119
let ctap2_request = Ctap2MakeCredentialRequest::dummy();
119120
match self.ctap2_make_credential(&ctap2_request, timeout).await {
120121
Ok(_)
@@ -125,6 +126,7 @@ impl<'d> HidChannel<'d> {
125126
}
126127
}
127128
} else if supported.u2f {
129+
info!("Creating dummy request to make the device blink");
128130
let register_request = Ctap1RegisterRequest::dummy(timeout);
129131
match self.ctap1_register(&register_request).await {
130132
Ok(_)

0 commit comments

Comments
 (0)