diff options
author | 2011-10-13 15:42:44 +0200 | |
---|---|---|
committer | 2011-10-13 15:42:44 +0200 | |
commit | efdd172e823cfc59d33c7acf30510cf05c2791fb (patch) | |
tree | b977a715a9562e2288bf933921c28c20c94df347 /module/plugins/Plugin.py | |
parent | improvement for hook plugins, new internal plugin type (diff) | |
download | pyload-efdd172e823cfc59d33c7acf30510cf05c2791fb.tar.xz |
fixes syntax error on old python versions
Diffstat (limited to 'module/plugins/Plugin.py')
-rw-r--r-- | module/plugins/Plugin.py | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/module/plugins/Plugin.py b/module/plugins/Plugin.py index 9417a4bfd..7c9e7c15c 100644 --- a/module/plugins/Plugin.py +++ b/module/plugins/Plugin.py @@ -81,17 +81,17 @@ class Base(object): self.config = core.config #log functions - def logInfo(self, msg): - self.log.info("%s: %s" % (self.__name__, msg)) + def logInfo(self, *args): + self.log.info("%s: %s" % (self.__name__, " | ".join(args))) - def logWarning(self, msg): - self.log.warning("%s: %s" % (self.__name__, msg)) + def logWarning(self, *args): + self.log.warning("%s: %s" % (self.__name__, " | ".join(args))) - def logError(self, msg): - self.log.error("%s: %s" % (self.__name__, msg)) + def logError(self, *args): + self.log.error("%s: %s" % (self.__name__, " | ".join(args))) - def logDebug(self, msg): - self.log.debug("%s: %s" % (self.__name__, msg)) + def logDebug(self, *args): + self.log.debug("%s: %s" % (self.__name__, "| ".join(args))) def setConf(self, option, value): |