Skip to content

Commit

Permalink
revering fix #1298
Browse files Browse the repository at this point in the history
  • Loading branch information
milyin committed Aug 27, 2024
1 parent 7c8c44d commit 7801908
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions zenohd/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -120,11 +120,7 @@ fn config_from_args(args: &Args) -> Config {
.config
.as_ref()
.map_or_else(Config::default, |conf_file| {
Config::from_file(conf_file).unwrap_or_else(|e| {
// if file load fail, wanning it, and load default config
tracing::warn!("Warn: File {} not found! {}", conf_file, e.to_string());
Config::default()
})
Config::from_file(conf_file).unwrap()
});

if config.mode().is_none() {
Expand Down

0 comments on commit 7801908

Please sign in to comment.