Cleanup config path logging without any files

Co-authored-by: Christian Duerr <contact@christianduerr.com>
This commit is contained in:
Nathan Lilienthal 2021-04-30 17:59:13 -04:00 committed by GitHub
parent 78e04445c7
commit e2a853b1a7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 0 deletions

View File

@ -235,6 +235,10 @@ fn run(
}
fn log_config_path(config: &Config) {
if config.ui_config.config_paths.is_empty() {
return;
}
let mut msg = String::from("Configuration files loaded from:");
for path in &config.ui_config.config_paths {
msg.push_str(&format!("\n {:?}", path.display()));