diff options
author | Walter Purcaro <vuolter@users.noreply.github.com> | 2015-07-28 01:09:59 +0200 |
---|---|---|
committer | Walter Purcaro <vuolter@users.noreply.github.com> | 2015-07-28 01:09:59 +0200 |
commit | ecf37227de05c73b7ffe2da89a5eda1259a72543 (patch) | |
tree | 01936b0bd250d18a2939df73f71a30898740ff4b /module/plugins/internal/Hook.py | |
parent | Missed to bump up some plugin __version__ (diff) | |
download | pyload-ecf37227de05c73b7ffe2da89a5eda1259a72543.tar.xz |
Improve _log method
Diffstat (limited to 'module/plugins/internal/Hook.py')
-rw-r--r-- | module/plugins/internal/Hook.py | 7 |
1 files changed, 6 insertions, 1 deletions
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) |