diff options
author | RaNaN <Mast3rRaNaN@hotmail.de> | 2010-07-29 20:08:07 +0200 |
---|---|---|
committer | RaNaN <Mast3rRaNaN@hotmail.de> | 2010-07-29 20:08:07 +0200 |
commit | ff21df6b2ccdaf5161351ab69086d358a98c241d (patch) | |
tree | d958eeb0d78ee6eec38349ed2884bb33ae429e6f /module/PluginThread.py | |
parent | more improvements and cleaned some imports (diff) | |
download | pyload-ff21df6b2ccdaf5161351ab69086d358a98c241d.tar.xz |
restart working and client information
Diffstat (limited to 'module/PluginThread.py')
-rw-r--r-- | module/PluginThread.py | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/module/PluginThread.py b/module/PluginThread.py index 313183cca..037fa0d4f 100644 --- a/module/PluginThread.py +++ b/module/PluginThread.py @@ -64,7 +64,7 @@ class DownloadThread(PluginThread): if self.active == "quit": return True - self.m.log.info(_("starting %s" % pyfile.name)) + self.m.log.info(_("Download starts: %s" % pyfile.name)) try: pyfile.plugin.preprocessing(self) @@ -75,7 +75,7 @@ class DownloadThread(PluginThread): continue except Abort: - self.m.log.info(_("%s aborted") % pyfile.name) + self.m.log.info(_("Download aborted: %s") % pyfile.name) pyfile.setStatus("aborted") self.active = False pyfile.release() @@ -92,7 +92,7 @@ class DownloadThread(PluginThread): except Retry: - self.m.log.info(_("restarting %s") % pyfile.name) + self.m.log.info(_("Download restarted: %s") % pyfile.name) self.queue.put(pyfile) continue @@ -102,10 +102,10 @@ class DownloadThread(PluginThread): if msg == "offline": pyfile.setStatus("offline") - self.m.log.warning(_("%s is offline.") % pyfile.name) + self.m.log.warning(_("Download is offline: %s") % pyfile.name) else: pyfile.setStatus("failed") - self.m.log.warning(_("%s failed: %s") % (pyfile.name, msg)) + self.m.log.warning(_("Download failed: %s | %s") % (pyfile.name, msg)) pyfile.error = msg continue @@ -117,7 +117,7 @@ class DownloadThread(PluginThread): except Exception, e: pyfile.setStatus("failed") - self.m.log.error(_("%s failed: %s") % (pyfile.name, str(e))) + self.m.log.error(_("Download failed: %s | %s") % (pyfile.name, str(e))) if self.m.core.debug: print_exc() @@ -129,7 +129,7 @@ class DownloadThread(PluginThread): self.m.core.files.save() - self.m.log(_("%s finished") % pyfile.name) + self.m.log.info(_("Download finished: %s") % pyfile.name) #@TODO hooks, packagaefinished etc |