shared(wg): remove leftover debugging command

Fixes #95
doy.
pull/103/head
Jake McGinty 2021-05-31 16:26:52 +09:00
parent 3766d88c83
commit 15e9c08a8a
1 changed files with 2 additions and 3 deletions

View File

@ -8,8 +8,8 @@ use wgctrl::{Backend, Device, DeviceUpdate, InterfaceName, PeerConfigBuilder};
fn cmd(bin: &str, args: &[&str]) -> Result<process::Output, Error> {
let output = Command::new(bin).args(args).output()?;
log::debug!("{} {}", bin, args.join(" "));
log::debug!("status code {:?}", output.status.code());
log::debug!("cmd: {} {}", bin, args.join(" "));
log::debug!("status: {:?}", output.status.code());
log::trace!("stdout: {}", String::from_utf8_lossy(&output.stdout));
log::trace!("stderr: {}", String::from_utf8_lossy(&output.stderr));
if output.status.success() {
@ -91,7 +91,6 @@ pub fn up(
if !network.no_routing {
add_route(interface, address)?;
}
cmd("ip", &["link"])?;
Ok(())
}