replace send_error with log.error
This commit is contained in:
parent
b744a54340
commit
b7478ba817
1 changed files with 2 additions and 3 deletions
|
@ -767,14 +767,13 @@ class Daemon(AuthJSONRPCServer):
|
|||
|
||||
def eb():
|
||||
if not r.called:
|
||||
self.analytics_manager.send_error("sd blob download timed out", sd_hash)
|
||||
log.error("sd blob download timed out: %s", sd_hash)
|
||||
r.errback(Exception("sd timeout"))
|
||||
|
||||
r = defer.Deferred(None)
|
||||
reactor.callLater(timeout, eb)
|
||||
d = download_sd_blob(self.session, sd_hash, self.session.payment_rate_manager)
|
||||
d.addErrback(lambda err: self.analytics_manager.send_error(
|
||||
"error downloading sd blob: " + err, sd_hash))
|
||||
d.addErrback(log.fail(), "Error downloading sd blob: %s", sd_hash)
|
||||
d.addCallback(BlobStreamDescriptorReader)
|
||||
d.addCallback(lambda blob: blob.get_info())
|
||||
d.addCallback(cb)
|
||||
|
|
Loading…
Add table
Reference in a new issue