From 6977d6944e54aca0c45c0e6cbaea75f66e49b884 Mon Sep 17 00:00:00 2001 From: Jack Robison Date: Wed, 2 May 2018 17:25:00 -0400 Subject: [PATCH] show local, remote, and s3 header heights in the log --- lbrynet/core/Wallet.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lbrynet/core/Wallet.py b/lbrynet/core/Wallet.py index 889e7514f..4e54fd58c 100644 --- a/lbrynet/core/Wallet.py +++ b/lbrynet/core/Wallet.py @@ -127,7 +127,7 @@ class Wallet(object): if s3_height > local_height: with open(os.path.join(self.config.path, "blockchain_headers"), "w") as headers_file: headers_file.write(raw_headers) - log.info("updated headers from s3") + log.info("fetched headers from s3 (s3 height: %i)", s3_height) else: log.warning("s3 is more out of date than we are") else: @@ -162,7 +162,7 @@ class Wallet(object): port = int(self.config.get('default_servers')[server_url]['t']) try: remote_height = yield self.get_remote_height(server_url, port) - log.debug("%s:%i remote height: %i, local height: %s", server_url, port, remote_height, local_height) + log.info("%s:%i height: %i, local height: %s", server_url, port, remote_height, local_height) if remote_height > local_height + s3_headers_depth: defer.returnValue(True) except Exception as err: