Add debug output for hook register functions
This commit is contained in:
parent
6af5be15ad
commit
da3554d98e
1 changed files with 10 additions and 0 deletions
|
@ -313,6 +313,7 @@ impl Store {
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn register_pre_read_hook(&self, h: Box<PreReadHook>) -> Result<()> {
|
pub fn register_pre_read_hook(&self, h: Box<PreReadHook>) -> Result<()> {
|
||||||
|
debug!("Registering pre-read hook: {:?}", h);
|
||||||
self.pre_read_hooks
|
self.pre_read_hooks
|
||||||
.deref()
|
.deref()
|
||||||
.lock()
|
.lock()
|
||||||
|
@ -322,6 +323,7 @@ impl Store {
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn register_post_read_hook(&self, h: Box<PostReadHook>) -> Result<()> {
|
pub fn register_post_read_hook(&self, h: Box<PostReadHook>) -> Result<()> {
|
||||||
|
debug!("Registering post-read hook: {:?}", h);
|
||||||
self.post_read_hooks
|
self.post_read_hooks
|
||||||
.deref()
|
.deref()
|
||||||
.lock()
|
.lock()
|
||||||
|
@ -331,6 +333,7 @@ impl Store {
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn register_pre_create_hook(&self, h: Box<PreCreateHook>) -> Result<()> {
|
pub fn register_pre_create_hook(&self, h: Box<PreCreateHook>) -> Result<()> {
|
||||||
|
debug!("Registering pre-create hook: {:?}", h);
|
||||||
self.pre_create_hooks
|
self.pre_create_hooks
|
||||||
.deref()
|
.deref()
|
||||||
.lock()
|
.lock()
|
||||||
|
@ -340,6 +343,7 @@ impl Store {
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn register_post_create_hook(&self, h: Box<PostCreateHook>) -> Result<()> {
|
pub fn register_post_create_hook(&self, h: Box<PostCreateHook>) -> Result<()> {
|
||||||
|
debug!("Registering post-create hook: {:?}", h);
|
||||||
self.post_create_hooks
|
self.post_create_hooks
|
||||||
.deref()
|
.deref()
|
||||||
.lock()
|
.lock()
|
||||||
|
@ -349,6 +353,7 @@ impl Store {
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn register_pre_retrieve_hook(&self, h: Box<PreRetrieveHook>) -> Result<()> {
|
pub fn register_pre_retrieve_hook(&self, h: Box<PreRetrieveHook>) -> Result<()> {
|
||||||
|
debug!("Registering pre-retrieve hook: {:?}", h);
|
||||||
self.pre_retrieve_hooks
|
self.pre_retrieve_hooks
|
||||||
.deref()
|
.deref()
|
||||||
.lock()
|
.lock()
|
||||||
|
@ -358,6 +363,7 @@ impl Store {
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn register_post_retrieve_hook(&self, h: Box<PostRetrieveHook>) -> Result<()> {
|
pub fn register_post_retrieve_hook(&self, h: Box<PostRetrieveHook>) -> Result<()> {
|
||||||
|
debug!("Registering post-retrieve hook: {:?}", h);
|
||||||
self.post_retrieve_hooks
|
self.post_retrieve_hooks
|
||||||
.deref()
|
.deref()
|
||||||
.lock()
|
.lock()
|
||||||
|
@ -367,6 +373,7 @@ impl Store {
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn register_pre_update_hook(&self, h: Box<PreUpdateHook>) -> Result<()> {
|
pub fn register_pre_update_hook(&self, h: Box<PreUpdateHook>) -> Result<()> {
|
||||||
|
debug!("Registering pre-update hook: {:?}", h);
|
||||||
self.pre_update_hooks
|
self.pre_update_hooks
|
||||||
.deref()
|
.deref()
|
||||||
.lock()
|
.lock()
|
||||||
|
@ -376,6 +383,7 @@ impl Store {
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn register_post_update_hook(&self, h: Box<PostUpdateHook>) -> Result<()> {
|
pub fn register_post_update_hook(&self, h: Box<PostUpdateHook>) -> Result<()> {
|
||||||
|
debug!("Registering post-update hook: {:?}", h);
|
||||||
self.post_update_hooks
|
self.post_update_hooks
|
||||||
.deref()
|
.deref()
|
||||||
.lock()
|
.lock()
|
||||||
|
@ -386,6 +394,7 @@ impl Store {
|
||||||
|
|
||||||
|
|
||||||
pub fn register_pre_delete_hook(&self, h: Box<PreDeleteHook>) -> Result<()> {
|
pub fn register_pre_delete_hook(&self, h: Box<PreDeleteHook>) -> Result<()> {
|
||||||
|
debug!("Registering pre-delete hook: {:?}", h);
|
||||||
self.pre_delete_hooks
|
self.pre_delete_hooks
|
||||||
.deref()
|
.deref()
|
||||||
.lock()
|
.lock()
|
||||||
|
@ -395,6 +404,7 @@ impl Store {
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn register_post_delete_hook(&self, h: Box<PostDeleteHook>) -> Result<()> {
|
pub fn register_post_delete_hook(&self, h: Box<PostDeleteHook>) -> Result<()> {
|
||||||
|
debug!("Registering post-delete hook: {:?}", h);
|
||||||
self.post_delete_hooks
|
self.post_delete_hooks
|
||||||
.deref()
|
.deref()
|
||||||
.lock()
|
.lock()
|
||||||
|
|
Loading…
Reference in a new issue