diff --git a/Cargo.lock b/Cargo.lock index c7178ba255a..bb33404e690 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -3023,6 +3023,7 @@ name = "rustbook" version = "0.1.0" dependencies = [ "clap", + "env_logger 0.7.1", "mdbook", ] diff --git a/src/tools/rustbook/Cargo.toml b/src/tools/rustbook/Cargo.toml index f5e5c0867b4..99310157a64 100644 --- a/src/tools/rustbook/Cargo.toml +++ b/src/tools/rustbook/Cargo.toml @@ -7,6 +7,7 @@ edition = "2018" [dependencies] clap = "2.25.0" +env_logger = "0.7.1" [dependencies.mdbook] version = "0.4.3" diff --git a/src/tools/rustbook/src/main.rs b/src/tools/rustbook/src/main.rs index c87c64540ad..63d84ae9732 100644 --- a/src/tools/rustbook/src/main.rs +++ b/src/tools/rustbook/src/main.rs @@ -9,6 +9,7 @@ use mdbook::MDBook; fn main() { + env_logger::Builder::from_env(env_logger::Env::default().default_filter_or("warn")).init(); let d_message = "-d, --dest-dir=[dest-dir] 'The output directory for your book{n}(Defaults to ./book when omitted)'"; let dir_message = "[dir]