From 7270bfe3328145dabb914dc43d002120b18e9a06 Mon Sep 17 00:00:00 2001 From: SkuldNorniern Date: Tue, 12 Mar 2024 10:25:10 +0900 Subject: [PATCH] refactor: change log level of few case --- src/net/capture.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/net/capture.rs b/src/net/capture.rs index 5394ac6..05cc0f1 100644 --- a/src/net/capture.rs +++ b/src/net/capture.rs @@ -58,7 +58,7 @@ pub fn find_device(identifier: &str) -> Result { if let Ok(index) = identifier.parse::() { if let Some(device) = devices.get(index) { let duration = start.elapsed(); - info!("Device {} captured in {:?}", device.name, duration); + debug!("Device {} captured in {:?}", device.name, duration); return Ok(device.clone()); } else { return Err(NetError::DeviceError(DeviceError::InvalidDeviceIndex( @@ -70,7 +70,7 @@ pub fn find_device(identifier: &str) -> Result { for device in devices { if device.name == identifier { let duration = start.elapsed(); - info!("Device {} captured in {:?}", device.name, duration); + debug!("Device {} captured in {:?}", device.name, duration); return Ok(device); } }