summaryrefslogtreecommitdiffstats
path: root/module/plugins/internal
diff options
context:
space:
mode:
authorGravatar Walter Purcaro <vuolter@users.noreply.github.com> 2015-06-10 01:45:05 +0200
committerGravatar Walter Purcaro <vuolter@users.noreply.github.com> 2015-06-10 01:45:05 +0200
commitd462f5224bf4ea895e813b97a3ab993c83ea0ac3 (patch)
tree7b86782d6ee59f14a4fb5cb0fa37727a9bffb0a6 /module/plugins/internal
parentMerge pull request #1478 from GammaC0de/patch-1 (diff)
downloadpyload-d462f5224bf4ea895e813b97a3ab993c83ea0ac3.tar.xz
Fix https://github.com/pyload/pyload/issues/1479
Diffstat (limited to 'module/plugins/internal')
-rw-r--r--module/plugins/internal/SimpleHoster.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/module/plugins/internal/SimpleHoster.py b/module/plugins/internal/SimpleHoster.py
index 25a35d9d8..4a3b7dcf7 100644
--- a/module/plugins/internal/SimpleHoster.py
+++ b/module/plugins/internal/SimpleHoster.py
@@ -429,14 +429,14 @@ class SimpleHoster(Hoster):
#@TODO: Move to Hoster in 0.4.10
- def _log(self, type, args):
+ def _log(self, level, args):
+ log = getattr(self.core.log, level)
msg = " | ".join((fs_encode(a) if isinstance(a, unicode) else #@NOTE: `fs_encode` -> `encode` in 0.4.10
decode(a) if isinstance(a, str) else
str(a)).strip() for a in args if a)
- logger = getattr(self.core.log, type)
- logger("%(plugin)s[%(id)s]: %(msg)s" % {'plugin': self.__name__,
- 'id' : self.pyfile.id,
- 'msg' : msg or _(type.upper() + " MARK")})
+ log("%(plugin)s[%(id)s]: %(msg)s" % {'plugin': self.__name__,
+ 'id' : self.pyfile.id,
+ 'msg' : msg or _(level.upper() + " MARK")})
#@TODO: Move to Hoster in 0.4.10