Add debug config when getting configuration for a hook

This commit is contained in:
Matthias Beyer 2016-07-16 00:28:27 +02:00
parent 33771f3903
commit 32617d0a16

View file

@ -681,8 +681,11 @@ impl Store {
fn get_config_for_hook(&self, name: &str) -> Option<&Value> {
match self.configuration {
Some(Value::Table(ref tabl)) => {
debug!("Trying to head 'hooks' section from {:?}", tabl);
tabl.get("hooks")
.map(|hook_section| {
debug!("Found hook section: {:?}", hook_section);
debug!("Reading section key: {:?}", name);
match *hook_section {
Value::Table(ref tabl) => tabl.get(name),
_ => None