Print debugging information in debug hook when setting config

This commit is contained in:
Matthias Beyer 2016-07-16 00:27:16 +02:00
parent 5a4e6b4af6
commit 47d0377026

View file

@ -30,8 +30,9 @@ impl Hook for DebugHook {
"stdhook_debug"
}
fn set_config(&mut self, _: &Value) {
() // We are not configurable here.
fn set_config(&mut self, c: &Value) {
debug!("Trying to set configuration in debug hook: {:?}", c);
debug!("Ignoring configuration in debug hook, we don't need a config here");
}
}