From 034731ab1e52cdafae436d122669e62872091485 Mon Sep 17 00:00:00 2001 From: James Lu Date: Sat, 26 Sep 2015 09:55:44 -0700 Subject: [PATCH] core: log which plugin is being called when calling hooks --- classes.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/classes.py b/classes.py index 0cb7813..7d5d4d2 100644 --- a/classes.py +++ b/classes.py @@ -266,7 +266,8 @@ class Irc(): # Iterate over hooked functions, catching errors accordingly for hook_func in world.command_hooks[hook_cmd]: try: - log.debug('(%s) Calling function %s', self.name, hook_func) + log.debug('(%s) Calling hook function %s from plugin "%s"', self.name, + hook_func, hook_func.__module__) hook_func(self, numeric, command, parsed_args) except Exception: # We don't want plugins to crash our servers...