调整日志

This commit is contained in:
lbl8603
2024-08-01 21:56:09 +08:00
parent e8322adbcc
commit 210b7c959e
3 changed files with 11 additions and 1 deletions
+1 -1
View File
@@ -10,7 +10,7 @@ impl VntCallback for VntHandler {
fn success(&self) { fn success(&self) {
println!(" {} ", style("====== Connect Successfully ======").green()) println!(" {} ", style("====== Connect Successfully ======").green())
} }
#[cfg(feature = "vnt-model")] #[cfg(feature = "integrated_tun")]
fn create_tun(&self, info: vnt::DeviceInfo) { fn create_tun(&self, info: vnt::DeviceInfo) {
println!("create_tun {}", info) println!("create_tun {}", info)
} }
+5
View File
@@ -12,6 +12,11 @@ fn main() {
} }
} }
Err(e) => { Err(e) => {
log::error!(
"parse error={:?} cmd={:?}",
e,
std::env::args().collect::<Vec<String>>()
);
println!("{}", e); println!("{}", e);
return; return;
} }
+5
View File
@@ -11,6 +11,11 @@ fn main() {
} }
} }
Err(e) => { Err(e) => {
log::error!(
"parse error={:?} cmd={:?}",
e,
std::env::args().collect::<Vec<String>>()
);
println!("{}", e); println!("{}", e);
return; return;
} }