From f0a1adc9c5cfa50040784a50261ed638329ea1e6 Mon Sep 17 00:00:00 2001 From: Jack Robison Date: Sun, 17 Dec 2017 15:38:00 -0500 Subject: [PATCH] whitespace, logging --- lbrynet/core/client/BlobRequester.py | 10 +++++----- lbrynet/core/client/ConnectionManager.py | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/lbrynet/core/client/BlobRequester.py b/lbrynet/core/client/BlobRequester.py index ac8da9844..8bf607679 100644 --- a/lbrynet/core/client/BlobRequester.py +++ b/lbrynet/core/client/BlobRequester.py @@ -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): diff --git a/lbrynet/core/client/ConnectionManager.py b/lbrynet/core/client/ConnectionManager.py index ae04e8355..af15c509e 100644 --- a/lbrynet/core/client/ConnectionManager.py +++ b/lbrynet/core/client/ConnectionManager.py @@ -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