util: get_bool_cfg(): more debug output
This commit is contained in:
parent
da8736d003
commit
b4fb226bb7
1 changed files with 4 additions and 1 deletions
|
@ -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
|
/// Check whether the hook is enabled or not. If the config is not there, the hook is _enabled_ by
|
||||||
|
|
Loading…
Reference in a new issue