summaryrefslogtreecommitdiffstats
path: root/libimagstorestdhook/src/vcs/git
diff options
context:
space:
mode:
authorMatthias Beyer <mail@beyermatthias.de>2016-09-20 09:27:44 +0200
committerMatthias Beyer <mail@beyermatthias.de>2016-09-20 09:35:03 +0200
commitb4fb226bb782ac62898c426f1aaf6777dc3dd1f6 (patch)
treeb6430acc1bb0e856c21a2c3aeec221f9e9c83c9f /libimagstorestdhook/src/vcs/git
parentda8736d003d4090700a73ef9bcab717127aec061 (diff)
util: get_bool_cfg(): more debug output
Diffstat (limited to 'libimagstorestdhook/src/vcs/git')
-rw-r--r--libimagstorestdhook/src/vcs/git/config.rs5
1 files changed, 4 insertions, 1 deletions
diff --git a/libimagstorestdhook/src/vcs/git/config.rs b/libimagstorestdhook/src/vcs/git/config.rs
index 25609cea..aca1652b 100644
--- a/libimagstorestdhook/src/vcs/git/config.rs
+++ b/libimagstorestdhook/src/vcs/git/config.rs
@@ -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