feat(log): print the configuration as trace log at startup

This commit is contained in:
Orhun Parmaksız 2022-05-21 06:26:17 +03:00
parent 48063d736a
commit 63c79b8297
No known key found for this signature in database
GPG Key ID: F83424824B3E4B90
1 changed files with 1 additions and 0 deletions

View File

@ -31,6 +31,7 @@ async fn main() -> IoResult<()> {
None => PathBuf::from("config.toml"),
};
let config = Config::parse(&config_path).expect("failed to parse config");
log::trace!("{:#?}", config);
let server_config = config.server.clone();
let paste_config = RwLock::new(config.paste.clone());
let (config_sender, config_receiver) = mpsc::channel::<Config>();