Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use log formatter to avoid serialisation #11184

Merged
merged 3 commits into from
Apr 20, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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