From 321269cf8f3e8459991260799e51fdf4d9482015 Mon Sep 17 00:00:00 2001 From: "Jeroen van Meeuwen (Kolab Systems)" Date: Wed, 21 Sep 2011 12:20:34 +0100 Subject: Allow increased tracing verbosity on executing plugin hooks --- pykolab/plugins/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pykolab/plugins/__init__.py b/pykolab/plugins/__init__.py index 8ef44f8..c3e0676 100644 --- a/pykolab/plugins/__init__.py +++ b/pykolab/plugins/__init__.py @@ -224,6 +224,7 @@ class KolabPlugins(object): if hasattr(getattr(self,plugin),hook): try: + log.debug(_("Executing hook %s for plugin %s") %(hook,plugin), level=9) exec("retval = self.%s.%s(*args, **kw)" %(plugin,hook)) except TypeError, e: log.error(_("Cannot execute hook %s for plugin %s: %s") %(hook,plugin,e)) @@ -232,7 +233,6 @@ class KolabPlugins(object): return retval - def return_true_boolean_from_plugins(self, bool, plugins=[]): """Given the name of a boolean, walks all specified plugins, or all available plugins, and returns True if a plugin has it set to true""" if len(plugins) < 1: -- cgit v1.1