Skip to content

Commit d193856

Browse files
authored
zenohd default config error eclipse-zenoh#1292
When tring load config file defined by -c option. With haver any problema "unwrap" has been to Config type. I treat it return a Default Config whe it happen
1 parent 76738cd commit d193856

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

zenohd/src/main.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -124,9 +124,9 @@ fn config_from_args(args: &Args) -> Config {
124124
.as_ref()
125125
.map_or_else(Config::default, |conf_file| {
126126
Config::from_file(conf_file).unwrap_or_else(|e| {
127-
warn!("Warn: File {} not found! {}", conf_file, e.to_string());
127+
tracing::warn!("Warn: File {} not found! {}", conf_file, e.to_string());
128128
Config::default()
129-
});
129+
})
130130
});
131131

132132
if config.mode().is_none() {

0 commit comments

Comments
 (0)