Cleanup config path logging without any files

Co-authored-by: Christian Duerr <contact@christianduerr.com>
This commit is contained in:
Nathan LilienthalandChristian Duerr authored and GitHub committed 2021-04-30 21:59:13 +00:00
1 parent 78e04445c7
commit e2a853b1a7
1 file changed
+4
+4
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()));