Skip to content

Commit

Permalink
Use info log level by default
Browse files Browse the repository at this point in the history
  • Loading branch information
akiroz committed Jan 18, 2024
1 parent 6932a77 commit 8990796
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
5 changes: 4 additions & 1 deletion src/bin/client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,10 @@ use zika::config::read_from_default_location;

#[tokio::main]
async fn main() {
env_logger::init();
env_logger::Builder::new()
.filter_level(log::LevelFilter::Info)
.parse_env("RUST_LOG")
.init();
let config = read_from_default_location().expect("A proper config file");
log::debug!("Config = {:?}", config);
let mut client = Client::from_config(config).await;
Expand Down
5 changes: 4 additions & 1 deletion src/bin/server.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,10 @@ use zika::server::Server;

#[tokio::main]
async fn main() {
env_logger::init();
env_logger::Builder::new()
.filter_level(log::LevelFilter::Info)
.parse_env("RUST_LOG")
.init();
let config = read_from_default_location().expect("A proper config file");
log::debug!("Config = {:?}", config);
let mut server = Server::from_config(config);
Expand Down

0 comments on commit 8990796

Please sign in to comment.