whitespace, logging
This commit is contained in:
parent
990e2a714a
commit
f0a1adc9c5
2 changed files with 6 additions and 6 deletions
|
@ -484,7 +484,7 @@ class DownloadRequest(RequestHelper):
|
|||
blob_details.cancel_func,
|
||||
blob
|
||||
)
|
||||
log.debug("Requesting blob %s from %s", blob.blob_hash, self.peer)
|
||||
log.info("Requesting blob %s from %s", blob.blob_hash, self.peer)
|
||||
return request
|
||||
|
||||
def _handle_download_request(self, client_blob_request):
|
||||
|
@ -508,10 +508,10 @@ class DownloadRequest(RequestHelper):
|
|||
self._download_failed,
|
||||
callbackArgs=(client_blob_request.blob,),
|
||||
)
|
||||
client_blob_request.finished_deferred.addBoth(
|
||||
self._pay_or_cancel_payment, reserved_points, client_blob_request.blob)
|
||||
client_blob_request.finished_deferred.addErrback(
|
||||
_handle_download_error, self.peer, client_blob_request.blob)
|
||||
client_blob_request.finished_deferred.addBoth(self._pay_or_cancel_payment,
|
||||
reserved_points, client_blob_request.blob)
|
||||
client_blob_request.finished_deferred.addErrback(_handle_download_error, self.peer,
|
||||
client_blob_request.blob)
|
||||
|
||||
def _pay_or_cancel_payment(self, arg, reserved_points, blob):
|
||||
if self._can_pay_peer(blob, arg):
|
||||
|
|
|
@ -39,7 +39,7 @@ class ConnectionManager(object):
|
|||
# a deferred that gets fired when a _manage call is set
|
||||
self._manage_deferred = None
|
||||
self.stopped = True
|
||||
log.info("%s initialized", self._get_log_name())
|
||||
log.debug("%s initialized", self._get_log_name())
|
||||
|
||||
# this identifies what the connection manager is for,
|
||||
# used for logging purposes only
|
||||
|
|
Loading…
Reference in a new issue