lldap/src/main.rs

18 lines
364 B
Rust
Raw Normal View History

2021-03-02 19:51:33 +00:00
use anyhow::Result;
use log::*;
2021-03-02 19:13:58 +00:00
mod infra;
2021-03-02 19:51:33 +00:00
fn main() -> Result<()> {
2021-03-02 19:13:58 +00:00
let cli_opts = infra::cli::init();
2021-03-02 19:51:33 +00:00
let config = infra::configuration::init(cli_opts.clone())?;
infra::logging::init(config.clone())?;
info!("Starting LLDAP....");
debug!("CLI: {:#?}", cli_opts);
debug!("Configuration: {:#?}", config);
2021-03-02 19:51:33 +00:00
info!("End.");
Ok(())
2021-03-02 11:45:30 +00:00
}