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

View file

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