feat(server): log parsed config

This commit is contained in:
Paul Campbell 2024-04-07 19:08:23 +01:00
parent f1041d6fe6
commit 1de2bd2ecb

View file

@ -38,7 +38,20 @@ pub fn start(fs: FileSystem) {
}
};
info!("Config loaded");
// todo!()
info!("Loaded config");
config.forges().for_each(|(name, forge)| {
let span = tracing::info_span!("Forge", name);
let _guard = span.enter();
info!("Forge: {}", name);
info!("Forge Type: {}", forge.forge_type());
info!("Hostname: {}", forge.hostname());
info!("User: {}", forge.user());
forge.repos().for_each(|(name, path)| {
let span = tracing::info_span!("Repo", name);
let _guard = span.enter();
info!("Repo: {} - {}", name, path);
});
});
}
pub fn init_logging() -> Result<(), tracing::subscriber::SetGlobalDefaultError> {