@@ -7,10 +7,11 @@ use std::{
7
7
use anyhow:: { anyhow, bail} ;
8
8
use crossterm:: event:: { read, Event } ;
9
9
use itertools:: Itertools ;
10
+ use log:: { debug, warn} ;
10
11
use pnet:: datalink:: { self , Channel :: Ethernet , Config , DataLinkReceiver , NetworkInterface } ;
11
12
use tokio:: runtime:: Runtime ;
12
13
13
- use crate :: { mt_log , network:: dns, os:: errors:: GetInterfaceError , OsInputOutput } ;
14
+ use crate :: { network:: dns, os:: errors:: GetInterfaceError , OsInputOutput } ;
14
15
15
16
#[ cfg( target_os = "linux" ) ]
16
17
use crate :: os:: linux:: get_open_sockets;
@@ -112,7 +113,7 @@ pub fn get_input(
112
113
interface. is_up ( ) && !interface. ips . is_empty ( )
113
114
} ;
114
115
if !keep {
115
- mt_log ! ( debug , "{} is down. Skipping it." , interface. name) ;
116
+ debug ! ( "{} is down. Skipping it." , interface. name) ;
116
117
}
117
118
keep
118
119
} )
@@ -137,8 +138,7 @@ pub fn get_input(
137
138
. iter ( )
138
139
. filter_map ( |( interface, frames_res) | frames_res. as_ref ( ) . err ( ) . map ( |err| ( interface, err) ) )
139
140
. for_each ( |( interface, err) | {
140
- mt_log ! (
141
- warn,
141
+ warn ! (
142
142
"Failed to acquire a frame receiver for {}: {err}" ,
143
143
interface. name
144
144
)
0 commit comments