[Debtorrent-commits] r18 - in /debtorrent/trunk: ./
DebTorrent/BT1/StorageWrapper.py btdownloadheadless.py
camrdale-guest at users.alioth.debian.org
camrdale-guest at users.alioth.debian.org
Fri Apr 27 22:56:15 UTC 2007
Author: camrdale-guest
Date: Fri Apr 27 22:56:14 2007
New Revision: 18
URL: http://svn.debian.org/wsvn/debtorrent/?sc=1&rev=18
Log:
Add some debug stuff
Modified:
debtorrent/trunk/ (props changed)
debtorrent/trunk/DebTorrent/BT1/StorageWrapper.py
debtorrent/trunk/btdownloadheadless.py
Propchange: debtorrent/trunk/
------------------------------------------------------------------------------
--- svn:ignore (original)
+++ svn:ignore Fri Apr 27 22:56:14 2007
@@ -1,2 +1,1 @@
-tags
*.pyc
Modified: debtorrent/trunk/DebTorrent/BT1/StorageWrapper.py
URL: http://svn.debian.org/wsvn/debtorrent/debtorrent/trunk/DebTorrent/BT1/StorageWrapper.py?rev=18&op=diff
==============================================================================
--- debtorrent/trunk/DebTorrent/BT1/StorageWrapper.py (original)
+++ debtorrent/trunk/DebTorrent/BT1/StorageWrapper.py Fri Apr 27 22:56:14 2007
@@ -161,6 +161,8 @@
x = next()
self.statusfunc(fractionDone = 0)
+ if DEBUG:
+ print 'StorageWrapper old_style_init complete'
return True
@@ -187,6 +189,8 @@
else:
if not self.initialize_tasks:
self.initialize_done()
+ if DEBUG:
+ print 'StorageWrapper initialize complete'
return
msg, done, init, next = self.initialize_tasks.pop(0)
if init():
@@ -236,7 +240,7 @@
self.check_targets[self.hashes[i]] = [i]
self.check_total = len(self.check_list)
self.check_numchecked = 0.0
- self.lastlen = self._piecelen(len(self.hashes) - 1)
+# self.lastlen = self._piecelen(len(self.hashes) - 1)
self.numchecked = 0.0
return self.check_total > 0
Modified: debtorrent/trunk/btdownloadheadless.py
URL: http://svn.debian.org/wsvn/debtorrent/debtorrent/trunk/btdownloadheadless.py?rev=18&op=diff
==============================================================================
--- debtorrent/trunk/btdownloadheadless.py (original)
+++ debtorrent/trunk/btdownloadheadless.py Fri Apr 27 22:56:14 2007
@@ -34,6 +34,8 @@
except:
True = 1
False = 0
+
+DEBUG = True
PROFILER = False
@@ -206,14 +208,24 @@
if not dow.initFiles(old_style = True):
break
+ if DEBUG:
+ print 'initFiles complete'
if not dow.startEngine():
dow.shutdown()
break
+ if DEBUG:
+ print 'Engine started'
dow.startRerequester()
+ if DEBUG:
+ print 'Rerequester started'
dow.autoStats()
+ if DEBUG:
+ print 'autoStats complete'
if not dow.am_I_finished():
h.display(activity = 'connecting to peers')
+ if DEBUG:
+ print 'preparing to listen forever'
rawserver.listen_forever(dow.getPortHandler())
h.display(activity = 'shutting down')
dow.shutdown()
More information about the Debtorrent-commits
mailing list