Skip to content

Commit

Permalink
refactor: change log level of few case
Browse files Browse the repository at this point in the history
  • Loading branch information
SkuldNorniern committed Mar 13, 2024
1 parent 1f6e6af commit 7270bfe
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/net/capture.rs
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ pub fn find_device(identifier: &str) -> Result<Device, NetError> {
if let Ok(index) = identifier.parse::<usize>() {
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(
Expand All @@ -70,7 +70,7 @@ pub fn find_device(identifier: &str) -> Result<Device, NetError> {
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);
}
}
Expand Down

0 comments on commit 7270bfe

Please sign in to comment.