mirror of
https://github.com/yzernik/squeaknode.git
synced 2026-08-20 13:28:20 +02:00
Change sqkserver log level in docker (#210)
This commit is contained in:
parent
6ed3ad7d2f
commit
087e68eb0b
3 changed files with 9 additions and 8 deletions
|
|
@ -14,5 +14,5 @@ export REQUESTS_CA_BUNDLE=/etc/ssl/certs/ca-certificates.crt
|
|||
|
||||
exec runsqueakserver \
|
||||
--config config.ini \
|
||||
--log-level DEBUG \
|
||||
--log-level INFO \
|
||||
run-server
|
||||
|
|
|
|||
|
|
@ -37,10 +37,10 @@ class BitcoinBlockchainClient(BlockchainClient):
|
|||
self.url, data=json.dumps(payload), headers=self.headers,
|
||||
).json()
|
||||
|
||||
logger.info("Got response for get_block_count: {}".format(response))
|
||||
logger.debug("Got response for get_block_count: {}".format(response))
|
||||
result = response["result"]
|
||||
block_count = int(result)
|
||||
logger.info("Got block_count: {}".format(block_count))
|
||||
logger.debug("Got block_count: {}".format(block_count))
|
||||
return block_count
|
||||
|
||||
def get_block_hash(self, block_height: int) -> Optional[str]:
|
||||
|
|
@ -54,10 +54,10 @@ class BitcoinBlockchainClient(BlockchainClient):
|
|||
self.url, data=json.dumps(payload), headers=self.headers,
|
||||
).json()
|
||||
|
||||
logger.info("Got response for get_block_hash: {}".format(response))
|
||||
logger.debug("Got response for get_block_hash: {}".format(response))
|
||||
result = response["result"]
|
||||
block_hash = result
|
||||
logger.info("Got block_hash: {}".format(block_hash))
|
||||
logger.debug("Got block_hash: {}".format(block_hash))
|
||||
return block_hash
|
||||
|
||||
# def get_best_block_hash(self) -> Optional[bytes]:
|
||||
|
|
@ -86,7 +86,7 @@ class BitcoinBlockchainClient(BlockchainClient):
|
|||
self.url, data=json.dumps(payload), headers=self.headers,
|
||||
).json()
|
||||
|
||||
logger.info("Got response for get_block_header: {}".format(response))
|
||||
logger.debug("Got response for get_block_header: {}".format(response))
|
||||
result = response["result"]
|
||||
logger.info("Got block_header: {}".format(result))
|
||||
logger.debug("Got block_header: {}".format(result))
|
||||
return result
|
||||
|
|
|
|||
|
|
@ -32,7 +32,8 @@ class SqueakSubscriptionDownloader:
|
|||
return
|
||||
|
||||
for subscription in subscriptions:
|
||||
logger.info("Syncing subscription: {} with current block: {}".format(subscription, block_height))
|
||||
if subscription.subscribed:
|
||||
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