util: get_bool_cfg(): more debug output

This commit is contained in:
Matthias Beyer 2016-09-20 09:27:44 +02:00
parent da8736d003
commit b4fb226bb7
1 changed files with 4 additions and 1 deletions

View File

@ -164,7 +164,10 @@ fn get_bool_cfg(cfg: Option<&Value>, name: &str, on_fail: bool, on_unavail: bool
},
}
})
.unwrap_or(on_unavail)
.unwrap_or_else(|| {
debug!("No configuration to fetch {} from, assuming {}", name, on_unavail);
on_unavail
})
}
/// Check whether the hook is enabled or not. If the config is not there, the hook is _enabled_ by