diff --git a/src/main.rs b/src/main.rs index 4ead5cb6..3f5bca4f 100644 --- a/src/main.rs +++ b/src/main.rs @@ -28,14 +28,13 @@ pub mod util; pub use module::bm::BM; fn main() { - let yaml = load_yaml!("../etc/cli.yml"); - let app = App::from_yaml(yaml); - let config = CliConfig::new(app); + let yaml = load_yaml!("../etc/cli.yml"); + let app = App::from_yaml(yaml); + let config = CliConfig::new(app); let configuration = Configuration::new(&config); + let logger = ImagLogger::init(&configuration, &config); - let logger = ImagLogger::init(&configuration, &config); debug!("Logger created!"); - debug!("CliConfig : {:?}", &config); debug!("Configuration: {:?}", &configuration);