We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 7589f3c + 216967b commit eb05e35Copy full SHA for eb05e35
blacksmith/src/main.rs
@@ -1,4 +1,4 @@
1
-use std::{env, io, path::Path, process};
+use std::{io, path::Path, process};
2
3
use mdbook::{
4
errors::Error,
@@ -12,13 +12,7 @@ const CACHE_TTL_SECONDS: u64 = 3600; // 1 hour
12
13
fn main() {
14
// If RUST_LOG is present use that, else default to info level printing.
15
- if let Ok(v) = env::var("RUST_LOG") {
16
- env_logger::init_from_env(v);
17
- } else {
18
- env_logger::builder()
19
- .filter_level(log::LevelFilter::Info)
20
- .init();
21
- }
+ env_logger::Builder::from_env(env_logger::Env::default().default_filter_or("info")).init();
22
23
macro_rules! log_unwrap {
24
($result:expr) => {
0 commit comments