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

Fix TL log spam. #19032

Merged
merged 3 commits into from
Jan 7, 2025
Merged
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
11 changes: 6 additions & 5 deletions chia/timelord/timelord.py
Original file line number Diff line number Diff line change
Expand Up @@ -217,18 +217,17 @@ async def _handle_client(self, reader: asyncio.StreamReader, writer: asyncio.Str

async def _stop_chain(self, chain: Chain) -> None:
try:
_, _, stop_writer = self.chain_type_to_stream[chain]
_, _, stop_writer = self.chain_type_to_stream.pop(chain)
if chain not in self.unspawned_chains:
self.unspawned_chains.append(chain)
if chain in self.allows_iters:
self.allows_iters.remove(chain)
stop_writer.write(b"010")
await stop_writer.drain()
self.allows_iters.remove(chain)
else:
log.error(f"Trying to stop {chain} before its initialization.")
stop_writer.close()
await stop_writer.wait_closed()
if chain not in self.unspawned_chains:
self.unspawned_chains.append(chain)
del self.chain_type_to_stream[chain]
except ConnectionResetError as e:
log.error(f"{e}")
except Exception as e:
Expand Down Expand Up @@ -1093,6 +1092,8 @@ async def _do_process_communication(

except ConnectionResetError as e:
log.debug(f"Connection reset with VDF client {e}")
except Exception:
log.exception("VDF client communication terminated abruptly")

async def _manage_discriminant_queue_sanitizer(self) -> None:
while not self._shut_down:
Expand Down
Loading