mirror of
https://github.com/yzernik/squeaknode.git
synced 2026-08-15 12:50:47 +02:00
Log current block height in subscriber thread (#206)
This commit is contained in:
parent
ad0632bd1c
commit
32bb298cf3
1 changed files with 3 additions and 1 deletions
|
|
@ -24,7 +24,9 @@ class SqueakSubscriptionDownloader:
|
|||
logger.info("Syncing subscriptions...")
|
||||
subscriptions = self._get_subscriptions()
|
||||
for subscription in subscriptions:
|
||||
logger.info("Syncing subscription: {}".format(subscription))
|
||||
block_info = self.blockchain_client.get_best_block_info()
|
||||
block_height = block_info.block_height
|
||||
logger.info("Syncing subscription: {} with current block: {}".format(subscription, block_height))
|
||||
|
||||
def start_running(self):
|
||||
threading.Timer(self.update_interval_s, self.start_running).start()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue