forked from kemitix/git-next
feat(server): log parsed config
This commit is contained in:
parent
f1041d6fe6
commit
1de2bd2ecb
1 changed files with 14 additions and 1 deletions
|
@ -38,7 +38,20 @@ pub fn start(fs: FileSystem) {
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
info!("Config loaded");
|
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> {
|
pub fn init_logging() -> Result<(), tracing::subscriber::SetGlobalDefaultError> {
|
||||||
|
|
Loading…
Reference in a new issue