summaryrefslogtreecommitdiffstats
path: root/module/thread_list.py
diff options
context:
space:
mode:
authorGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2009-05-26 15:36:51 +0200
committerGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2009-05-26 15:36:51 +0200
commitd02541c948a71533469663b3400bc4a3179548c2 (patch)
tree021232e6a2e0f05b99b21041e66ae1ccdc651ea5 /module/thread_list.py
parentbetter youtube video id parsing, nicer testoutput (diff)
downloadpyload-d02541c948a71533469663b3400bc4a3179548c2.tar.xz
introduced logger
Diffstat (limited to 'module/thread_list.py')
-rw-r--r--module/thread_list.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/module/thread_list.py b/module/thread_list.py
index 979a98c60..065318a56 100644
--- a/module/thread_list.py
+++ b/module/thread_list.py
@@ -73,6 +73,7 @@ class Thread_List(object):
self.py_downloading.append(pyfile)
if not pyfile.plugin.multi_dl:
self.occ_plugins.append(pyfile.modul.__name__)
+ self.parent.logger.info('start downloading ' + pyfile.url )
self.lock.release()
return pyfile
@@ -85,6 +86,7 @@ class Thread_List(object):
self.occ_plugins.remove(pyfile.modul.__name__)
self.py_downloading.remove(pyfile)
+ self.parent.logger.info('finished downloading ' + pyfile.url + ' @'+str(pyfile.status.get_speed())+'kb/s')
if pyfile.plugin.plugin_type == "container":
self.parent.extend_links(pyfile.plugin.links)