Skip to content

Commit

Permalink
avoid serialisation in logging
Browse files Browse the repository at this point in the history
  • Loading branch information
trepca committed Apr 15, 2022
1 parent 2fbe062 commit 4a2b447
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion chia/daemon/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ async def incoming_connection(self, request):

while True:
msg = await ws.receive()
self.log.debug(f"Received message: {msg}")
self.log.debug("Received message: %s", msg)
if msg.type == WSMsgType.TEXT:
try:
decoded = json.loads(msg.data)
Expand Down
2 changes: 1 addition & 1 deletion chia/full_node/weight_proof.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ def get_sub_epoch_data(self, tip_height: uint32, summary_heights: List[uint32])
if ses_height > tip_height:
break
ses = self.blockchain.get_ses(ses_height)
log.debug(f"handle sub epoch summary {sub_epoch_n} at height: {ses_height} ses {ses}")
log.debug("handle sub epoch summary %s at height: %s ses %s", sub_epoch_n, ses_height, ses)
sub_epoch_data.append(_create_sub_epoch_data(ses))
return sub_epoch_data

Expand Down
2 changes: 1 addition & 1 deletion chia/wallet/wallet_node.py
Original file line number Diff line number Diff line change
Expand Up @@ -358,7 +358,7 @@ async def _process_new_subscriptions(self):
try:
peer, item = None, None
item = await self.new_peak_queue.get()
self.log.debug(f"Pulled from queue: {item}")
self.log.debug("Pulled from queue: %s", item)
assert item is not None
if item.item_type == NewPeakQueueTypes.COIN_ID_SUBSCRIPTION:
# Subscriptions are the highest priority, because we don't want to process any more peaks or
Expand Down

0 comments on commit 4a2b447

Please sign in to comment.