replace send_error with log.error

This commit is contained in:
jobevers 2017-01-29 13:40:39 -08:00
parent b744a54340
commit b7478ba817

View file

@ -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)