diff --git a/src/api/hook.py b/src/api/hook.py index 4f5d12b..b0ac0c4 100644 --- a/src/api/hook.py +++ b/src/api/hook.py @@ -13,8 +13,10 @@ # You should have received a copy of the GNU General Public License # along with RcGcDw. If not, see . +import logging import src.api.hooks +logger = logging.getLogger("src.api.hook") def pre_hook(func): """ @@ -22,6 +24,7 @@ def pre_hook(func): :return: func """ + logger.info("{hook_name} has been registered as a pre hook.".format(hook_name=func.__name__)) src.api.hooks.pre_hooks.append(func) return func @@ -32,5 +35,6 @@ def post_hook(func): :return: func """ + logger.info("{hook_name} has been registered as a post hook.".format(hook_name=func.__name__)) src.api.hooks.post_hooks.append(func) return func