From 2c0a9c413325ca512b481eaf1845ac4c6ec7ad59 Mon Sep 17 00:00:00 2001 From: Guillaume Pasquet Date: Sat, 9 Apr 2022 21:14:40 +0100 Subject: Add logger --- src/main.rs | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src') diff --git a/src/main.rs b/src/main.rs index df12e1e..8d54601 100644 --- a/src/main.rs +++ b/src/main.rs @@ -4,7 +4,9 @@ mod output; use barbfile::BarbFile; use clap::Parser; use dotenv::dotenv; +use env_logger; use executor::{Context, Executor}; +use log::debug; use output::BarbOutput; use std::env; use std::slice::Iter; @@ -74,7 +76,11 @@ fn read_file_barb(file_name: &str) -> Result { } fn main() { + env_logger::init(); + let args = Args::parse(); + debug!("args: {:?}", args); + dotenv().ok(); let mut executor = Executor::new(Context::new(env::vars())); let output = args.output(); -- cgit v1.2.3