Skip to content

Commit

Permalink
default to info if no logger is set
Browse files Browse the repository at this point in the history
  • Loading branch information
zefanjajobse committed Oct 23, 2024
1 parent e65c157 commit 526adf0
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ use chrono::Local;
use env_logger::Builder;
use log::LevelFilter;
use std::collections::HashMap;
use std::env;
use std::io::Write;
use std::{
sync::{atomic, Arc},
Expand All @@ -14,6 +15,9 @@ mod input;
mod structs;

fn main() {
if env::var("RUST_LOG").is_err() {
env::set_var("RUST_LOG", "info")
}
let mut builder = Builder::from_default_env();

builder
Expand Down

0 comments on commit 526adf0

Please sign in to comment.