Skip to content

Commit

Permalink
调整日志
Browse files Browse the repository at this point in the history
  • Loading branch information
vnt-dev committed Aug 1, 2024
1 parent e8322ad commit 210b7c9
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 1 deletion.
2 changes: 1 addition & 1 deletion common/src/callback.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ impl VntCallback for VntHandler {
fn success(&self) {
println!(" {} ", style("====== Connect Successfully ======").green())
}
#[cfg(feature = "vnt-model")]
#[cfg(feature = "integrated_tun")]
fn create_tun(&self, info: vnt::DeviceInfo) {
println!("create_tun {}", info)
}
Expand Down
5 changes: 5 additions & 0 deletions vn-link-cli/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,11 @@ fn main() {
}
}
Err(e) => {
log::error!(
"parse error={:?} cmd={:?}",
e,
std::env::args().collect::<Vec<String>>()
);
println!("{}", e);
return;
}
Expand Down
5 changes: 5 additions & 0 deletions vnt-cli/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,11 @@ fn main() {
}
}
Err(e) => {
log::error!(
"parse error={:?} cmd={:?}",
e,
std::env::args().collect::<Vec<String>>()
);
println!("{}", e);
return;
}
Expand Down

0 comments on commit 210b7c9

Please sign in to comment.