Debug output in MutableHookDatsaAccessor impl for Aspect
This commit is contained in:
parent
32617d0a16
commit
6a85760feb
1 changed files with 3 additions and 0 deletions
|
@ -58,7 +58,10 @@ impl StoreIdAccessor for Aspect {
|
|||
|
||||
impl MutableHookDataAccessor for Aspect {
|
||||
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) {
|
||||
debug!("Apparently mutable hooks are not allowed... failing now.");
|
||||
return Err(HE::new(HEK::MutableHooksNotAllowed, None));
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue