Add debugging output when setting hook configuration

This commit is contained in:
Matthias Beyer 2016-07-16 00:27:54 +02:00
parent fc72b3f53a
commit 33771f3903

View file

@ -666,7 +666,9 @@ impl Store {
for mut aspect in guard.deref_mut() {
if aspect.name().clone() == aspect_name.clone() {
debug!("Trying to find configuration for hook: {:?}", h);
self.get_config_for_hook(h.name()).map(|config| h.set_config(config));
debug!("Trying to register hook in aspect: {:?} <- {:?}", aspect, h);
aspect.register_hook(h);
return Ok(());
}