From 16ed6baa2b9d2f87bc2caeb30bc2d40306f19e6c Mon Sep 17 00:00:00 2001 From: Martin Sirringhaus Date: Tue, 1 Sep 2026 09:43:40 +0200 Subject: [PATCH 1/2] Do not print how many devices where found for each loop iteration --- libwebauthn/src/transport/hid/device.rs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/libwebauthn/src/transport/hid/device.rs b/libwebauthn/src/transport/hid/device.rs index 6960a09a..a0da0b2c 100644 --- a/libwebauthn/src/transport/hid/device.rs +++ b/libwebauthn/src/transport/hid/device.rs @@ -7,7 +7,7 @@ use std::fmt; #[cfg(feature = "virt")] use std::sync::{Arc, Mutex}; #[allow(unused_imports)] -use tracing::{debug, info, instrument}; +use tracing::{debug, info, instrument, trace}; #[cfg(feature = "virt")] use super::framing::HidMessage; @@ -80,8 +80,7 @@ pub async fn list_devices() -> Result, HidError> { .filter(|device| device.usage() == 0x0001) .map(|device| device.into()) .collect(); - info!({ count = devices.len() }, "Listing available HID devices"); - debug!(?devices); + trace!(?devices); Ok(devices) } From 35b4c9f1b4be4fc81e4eab31779f81ab8dd79240 Mon Sep 17 00:00:00 2001 From: Martin Sirringhaus Date: Tue, 1 Sep 2026 10:51:30 +0200 Subject: [PATCH 2/2] Re-introduce completely removed logging, but reducing log-level for both log-statements --- libwebauthn/src/transport/hid/device.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/libwebauthn/src/transport/hid/device.rs b/libwebauthn/src/transport/hid/device.rs index a0da0b2c..add60b6a 100644 --- a/libwebauthn/src/transport/hid/device.rs +++ b/libwebauthn/src/transport/hid/device.rs @@ -80,6 +80,7 @@ pub async fn list_devices() -> Result, HidError> { .filter(|device| device.usage() == 0x0001) .map(|device| device.into()) .collect(); + debug!({ count = devices.len() }, "Listing available HID devices"); trace!(?devices); Ok(devices) }