Add debug config when getting configuration for a hook
This commit is contained in:
parent
33771f3903
commit
32617d0a16
1 changed files with 3 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue