Drop added logging around root cancel

transport_cleaning
Tyler Goodlet 2021-07-04 11:00:08 -04:00
parent caa70245e0
commit 6aab16f877
1 changed files with 2 additions and 5 deletions

View File

@ -179,11 +179,8 @@ async def open_root_actor(
finally: finally:
logger.info("Shutting down root actor") logger.info("Shutting down root actor")
try: with trio.CancelScope(shield=True):
with trio.CancelScope(shield=True): await actor.cancel()
await actor.cancel()
except Exception as err:
log.warning('Root was already cancelled')
finally: finally:
_state._current_actor = None _state._current_actor = None
logger.info("Root actor terminated") logger.info("Root actor terminated")