Debug output in MutableHookDatsaAccessor impl for Aspect

This commit is contained in:
Matthias Beyer 2016-07-16 01:14:10 +02:00
parent 32617d0a16
commit 6a85760feb

View file

@ -58,7 +58,10 @@ impl StoreIdAccessor for Aspect {
impl MutableHookDataAccessor for Aspect { impl MutableHookDataAccessor for Aspect {
fn access_mut(&self, fle: &mut FileLockEntry) -> HookResult<()> { fn access_mut(&self, fle: &mut FileLockEntry) -> HookResult<()> {
debug!("Checking whether mutable hooks are allowed");
debug!("-> config = {:?}", self.cfg);
if !self.cfg.as_ref().map(|c| c.allow_mutable_hooks()).unwrap_or(false) { if !self.cfg.as_ref().map(|c| c.allow_mutable_hooks()).unwrap_or(false) {
debug!("Apparently mutable hooks are not allowed... failing now.");
return Err(HE::new(HEK::MutableHooksNotAllowed, None)); return Err(HE::new(HEK::MutableHooksNotAllowed, None));
} }