summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthias Beyer <mail@beyermatthias.de>2020-05-22 11:06:17 +0200
committerMatthias Beyer <mail@beyermatthias.de>2020-05-22 11:06:17 +0200
commit71b85a33fa41237b527e83f5f32178205dc43d21 (patch)
tree2c7209dcad328554e76574d83bf6cbf26863d7fa
parent4a38712ea9a56e889f61b0c8d6b0566d047edaf8 (diff)
Add initialization of env_logger
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
-rw-r--r--src/main.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/main.rs b/src/main.rs
index 2b42136..34f7811 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -307,6 +307,9 @@ async fn on_request(req: Request<Body>) -> Result<Response<Body>, Infallible> {
#[tokio::main]
async fn main() {
+ let _ = env_logger::from_env(Env::default().default_filter_or("info")).init();
+ debug!("Logger initialized");
+
let addr: SocketAddr = CONFIG.listen.parse()
.expect("Unable to parse socket address");