Cleanup config path logging without any files
Co-authored-by: Christian Duerr <contact@christianduerr.com>
This commit is contained in:
parent
78e04445c7
commit
e2a853b1a7
|
@ -235,6 +235,10 @@ fn run(
|
||||||
}
|
}
|
||||||
|
|
||||||
fn log_config_path(config: &Config) {
|
fn log_config_path(config: &Config) {
|
||||||
|
if config.ui_config.config_paths.is_empty() {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
let mut msg = String::from("Configuration files loaded from:");
|
let mut msg = String::from("Configuration files loaded from:");
|
||||||
for path in &config.ui_config.config_paths {
|
for path in &config.ui_config.config_paths {
|
||||||
msg.push_str(&format!("\n {:?}", path.display()));
|
msg.push_str(&format!("\n {:?}", path.display()));
|
||||||
|
|
Loading…
Reference in New Issue