From ec0181562ec7bffe19201b77f2a80ee2eea42457 Mon Sep 17 00:00:00 2001 From: Raphael Nestler Date: Mon, 11 Nov 2019 22:28:06 +0100 Subject: [PATCH] cargo-flash: Add log messages support (#69) --- cargo-flash/Cargo.toml | 3 ++- cargo-flash/src/main.rs | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/cargo-flash/Cargo.toml b/cargo-flash/Cargo.toml index 6c1c68bc68..9bd82587d0 100644 --- a/cargo-flash/Cargo.toml +++ b/cargo-flash/Cargo.toml @@ -18,4 +18,5 @@ cargo-project = "0.2.2" failure = "0.1.5" colored = "1.8.0" probe-rs = { path = "../probe-rs", version = "0.2.0" } -probe-rs-targets = { path = "../probe-rs-targets", version = "0.2.0" } \ No newline at end of file +probe-rs-targets = { path = "../probe-rs-targets", version = "0.2.0" } +pretty_env_logger = "0.3.0" diff --git a/cargo-flash/src/main.rs b/cargo-flash/src/main.rs index 2e64de6953..6d5fd5ca73 100644 --- a/cargo-flash/src/main.rs +++ b/cargo-flash/src/main.rs @@ -64,6 +64,7 @@ struct Opt { } fn main() { + pretty_env_logger::init(); match main_try() { Ok(_) => (), Err(e) => {