From 0e7d1730fc37632a533148c39d44ed64715b38b0 Mon Sep 17 00:00:00 2001 From: Matthias Beyer Date: Wed, 7 Sep 2016 17:13:14 +0200 Subject: [PATCH] Fix get_bool_cfg() --- libimagstorestdhook/src/vcs/git/config.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/libimagstorestdhook/src/vcs/git/config.rs b/libimagstorestdhook/src/vcs/git/config.rs index 32ac2698..0a9d5907 100644 --- a/libimagstorestdhook/src/vcs/git/config.rs +++ b/libimagstorestdhook/src/vcs/git/config.rs @@ -55,12 +55,12 @@ fn get_bool_cfg(cfg: Option<&Value>, name: &str, on_fail: bool, on_unavail: bool Some(&Value::Boolean(b)) => b, Some(_) => { warn!("Configuration error, '{}' must be a Boolean (true|false).", name); - warn!("Assuming 'true' now."); + warn!("Assuming '{}' now.", on_fail); on_fail }, None => { - debug!("No key '{}' - Assuming 'true'", name); - on_fail + debug!("No key '{}' - Assuming '{}'", name, on_unavail); + on_unavail }, } })