mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2024-12-23 23:02:25 +00:00
download: remove some leftover (and not very useful) debug logging
This commit is contained in:
parent
2f5fb51848
commit
6bdabd2cea
@ -192,7 +192,6 @@ class SegmentDownloader:
|
|||||||
del self.parent._share_buckets[shnum]
|
del self.parent._share_buckets[shnum]
|
||||||
|
|
||||||
class FileDownloader:
|
class FileDownloader:
|
||||||
debug = False
|
|
||||||
|
|
||||||
def __init__(self, client, uri, downloadable):
|
def __init__(self, client, uri, downloadable):
|
||||||
self._client = client
|
self._client = client
|
||||||
@ -226,8 +225,6 @@ class FileDownloader:
|
|||||||
|
|
||||||
def start(self):
|
def start(self):
|
||||||
log.msg("starting download [%s]" % (idlib.b2a(self._verifierid),))
|
log.msg("starting download [%s]" % (idlib.b2a(self._verifierid),))
|
||||||
if self.debug:
|
|
||||||
print "starting download"
|
|
||||||
|
|
||||||
# first step: who should we download from?
|
# first step: who should we download from?
|
||||||
d = defer.maybeDeferred(self._get_all_shareholders)
|
d = defer.maybeDeferred(self._get_all_shareholders)
|
||||||
@ -410,7 +407,6 @@ class Downloader(service.MultiService):
|
|||||||
"""
|
"""
|
||||||
implements(IDownloader)
|
implements(IDownloader)
|
||||||
name = "downloader"
|
name = "downloader"
|
||||||
debug = False
|
|
||||||
|
|
||||||
def download(self, uri, t):
|
def download(self, uri, t):
|
||||||
assert self.parent
|
assert self.parent
|
||||||
@ -419,8 +415,6 @@ class Downloader(service.MultiService):
|
|||||||
assert t.write
|
assert t.write
|
||||||
assert t.close
|
assert t.close
|
||||||
dl = FileDownloader(self.parent, uri, t)
|
dl = FileDownloader(self.parent, uri, t)
|
||||||
if self.debug:
|
|
||||||
dl.debug = True
|
|
||||||
d = dl.start()
|
d = dl.start()
|
||||||
return d
|
return d
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user