From ecf37227de05c73b7ffe2da89a5eda1259a72543 Mon Sep 17 00:00:00 2001 From: Walter Purcaro Date: Tue, 28 Jul 2015 01:09:59 +0200 Subject: Improve _log method --- module/plugins/internal/Hook.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'module/plugins/internal/Hook.py') diff --git a/module/plugins/internal/Hook.py b/module/plugins/internal/Hook.py index fbd6934ce..3d8fb0dde 100644 --- a/module/plugins/internal/Hook.py +++ b/module/plugins/internal/Hook.py @@ -6,7 +6,7 @@ from module.plugins.internal.Addon import Addon class Hook(Addon): __name__ = "Hook" __type__ = "hook" - __version__ = "0.10" + __version__ = "0.11" __status__ = "testing" __config__ = [] #: [("name", "type", "desc", "default")] @@ -21,3 +21,8 @@ class Hook(Addon): def __init__(self, core, manager): super(Hook, self).__init__(core, manager) self.init_periodical(10) + + + #@TODO: Remove in 0.4.10 + def _log(self, level, plugintype, pluginname, messages): + return super(self.__name__, self)._log(level, plugintype, pluginname.replace("Hook", ""), messages) -- cgit v1.2.3