diff options
| author | Linus Färnstrand <linus@mullvad.net> | 2018-10-24 14:45:00 +0200 |
|---|---|---|
| committer | Linus Färnstrand <linus@mullvad.net> | 2018-10-24 23:34:33 +0200 |
| commit | c22962d1422c0c415d35c0068efe53124dd98aa9 (patch) | |
| tree | 1f4829e9b8639a0df8a89b10500e1b7ab60f520d | |
| parent | 7db6d2c0c67156a604bbeb87b21da89249d72b62 (diff) | |
| download | mullvadvpn-c22962d1422c0c415d35c0068efe53124dd98aa9.tar.xz mullvadvpn-c22962d1422c0c415d35c0068efe53124dd98aa9.zip | |
Add terminal logging to problem-report
| -rw-r--r-- | Cargo.lock | 1 | ||||
| -rw-r--r-- | mullvad-problem-report/Cargo.toml | 1 | ||||
| -rw-r--r-- | mullvad-problem-report/src/main.rs | 2 |
3 files changed, 4 insertions, 0 deletions
diff --git a/Cargo.lock b/Cargo.lock index 2ce8627195..9e2b4b57af 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -983,6 +983,7 @@ version = "2018.4.0" dependencies = [ "clap 2.32.0 (registry+https://github.com/rust-lang/crates.io-index)", "dirs 1.0.2 (registry+https://github.com/rust-lang/crates.io-index)", + "env_logger 0.5.12 (registry+https://github.com/rust-lang/crates.io-index)", "error-chain 0.12.0 (registry+https://github.com/rust-lang/crates.io-index)", "lazy_static 1.1.0 (registry+https://github.com/rust-lang/crates.io-index)", "mullvad-paths 0.1.0", diff --git a/mullvad-problem-report/Cargo.toml b/mullvad-problem-report/Cargo.toml index b5ad1675df..307e0c79c9 100644 --- a/mullvad-problem-report/Cargo.toml +++ b/mullvad-problem-report/Cargo.toml @@ -19,6 +19,7 @@ path = "src/main.rs" [dependencies] clap = "2.25" dirs = "1.0" +env_logger = "0.5" error-chain = "0.12" lazy_static = "1.0" regex = "1.0" diff --git a/mullvad-problem-report/src/main.rs b/mullvad-problem-report/src/main.rs index 1ffa870f4e..c1920f9bff 100644 --- a/mullvad-problem-report/src/main.rs +++ b/mullvad-problem-report/src/main.rs @@ -11,6 +11,7 @@ extern crate clap; extern crate dirs; #[macro_use] extern crate error_chain; +extern crate env_logger; #[macro_use] extern crate lazy_static; extern crate regex; @@ -91,6 +92,7 @@ error_chain!{ quick_main!(run); fn run() -> Result<()> { + env_logger::init(); let app = clap::App::new("problem-report") .version(metadata::PRODUCT_VERSION) .author(crate_authors!()) |
