forked from goodboy/tractor
Drop added logging around root cancel
parent
caa70245e0
commit
6aab16f877
|
@ -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")
|
||||||
|
|
Loading…
Reference in New Issue