diff options
| author | Linus Färnstrand <linus@mullvad.net> | 2017-03-07 09:58:55 +0100 |
|---|---|---|
| committer | Linus Färnstrand <linus@mullvad.net> | 2017-03-07 09:58:55 +0100 |
| commit | 3af0e735feaf6b4d52af9603141b84392037bbb1 (patch) | |
| tree | 13e02cee19b61d76e37eb62f26ef01c692bd320f | |
| parent | e8ac125488e40fc8ae3ca9e0920b1b7fe09980d7 (diff) | |
| download | mullvadvpn-3af0e735feaf6b4d52af9603141b84392037bbb1.tar.xz mullvadvpn-3af0e735feaf6b4d52af9603141b84392037bbb1.zip | |
Adding logging to talpid_core
| -rw-r--r-- | Cargo.lock | 1 | ||||
| -rw-r--r-- | Cargo.toml | 1 | ||||
| -rw-r--r-- | src/lib.rs | 3 | ||||
| -rw-r--r-- | src/process/openvpn.rs | 1 |
4 files changed, 6 insertions, 0 deletions
diff --git a/Cargo.lock b/Cargo.lock index 8a2318b595..de49082f8d 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -286,6 +286,7 @@ dependencies = [ "assert_matches 1.0.1 (registry+https://github.com/rust-lang/crates.io-index)", "clonablechild 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)", "error-chain 0.8.1 (registry+https://github.com/rust-lang/crates.io-index)", + "log 0.3.6 (registry+https://github.com/rust-lang/crates.io-index)", "openvpn_ffi 0.1.0", "talpid_ipc 0.1.0", "zmq 0.8.1 (registry+https://github.com/rust-lang/crates.io-index)", diff --git a/Cargo.toml b/Cargo.toml index a2271237ab..9787050779 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -7,6 +7,7 @@ description = "Core backend functionality of the Mullvad VPN client" [dependencies] clonablechild = "0.1" error-chain = "0.8" +log = "0.3" [dependencies.talpid_ipc] path = "talpid_ipc" diff --git a/src/lib.rs b/src/lib.rs index 00c4061801..8fe76a5a69 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -9,6 +9,9 @@ extern crate assert_matches; extern crate clonablechild; #[macro_use] +extern crate log; + +#[macro_use] extern crate error_chain; extern crate talpid_ipc; diff --git a/src/process/openvpn.rs b/src/process/openvpn.rs index b533b32b67..48da508f75 100644 --- a/src/process/openvpn.rs +++ b/src/process/openvpn.rs @@ -84,6 +84,7 @@ impl OpenVpnCommand { let mut command = self.create_command(); let args = self.get_arguments(); command.args(&args); + debug!("Spawning: {}", &self); command.spawn() } |
