diff options
author | Walter Purcaro <vuolter@users.noreply.github.com> | 2015-07-29 08:40:17 +0200 |
---|---|---|
committer | Walter Purcaro <vuolter@users.noreply.github.com> | 2015-07-29 08:40:17 +0200 |
commit | e42f5783442fcbaa53e6c0faf943dd33c397e0b3 (patch) | |
tree | d5929a9bd2618320eee2a4f08bd67b258cef9de6 /module/plugins/internal/Plugin.py | |
parent | Fix https://github.com/pyload/pyload/issues/1588 (diff) | |
download | pyload-e42f5783442fcbaa53e6c0faf943dd33c397e0b3.tar.xz |
Fix _log method
Diffstat (limited to 'module/plugins/internal/Plugin.py')
-rw-r--r-- | module/plugins/internal/Plugin.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/module/plugins/internal/Plugin.py b/module/plugins/internal/Plugin.py index 638a1ee1f..84dd5bdd4 100644 --- a/module/plugins/internal/Plugin.py +++ b/module/plugins/internal/Plugin.py @@ -137,7 +137,7 @@ def chunks(iterable, size): class Plugin(object): __name__ = "Plugin" __type__ = "hoster" - __version__ = "0.16" + __version__ = "0.17" __status__ = "testing" __pattern__ = r'^unmatchable$' @@ -167,7 +167,7 @@ class Plugin(object): def _log(self, level, plugintype, pluginname, messages): log = getattr(self.pyload.log, level) msg = encode(" | ".join((a if isinstance(a, basestring) else str(a)).strip() for a in messages if a)) - log("%(plugintype)s %(pluginname)s%(id)s : %(msg)s" + log("%(plugintype)s %(pluginname)s%(id)s: %(msg)s" % {'plugintype': plugintype.upper(), 'pluginname': pluginname, 'id' : ("[%s]" % self.pyfile.id) if hasattr(self, 'pyfile') else "", |