logging
This commit is contained in:
parent
e07c3d39dc
commit
ba2e2a1dcc
1 changed files with 0 additions and 2 deletions
|
@ -85,10 +85,8 @@ class BlockchainService:
|
||||||
async def _run(self):
|
async def _run(self):
|
||||||
try:
|
try:
|
||||||
await self.start()
|
await self.start()
|
||||||
self.log.info("finished start(), waiting for shutdown event")
|
|
||||||
await self.shutdown_event.wait()
|
await self.shutdown_event.wait()
|
||||||
except (SystemExit, KeyboardInterrupt, asyncio.CancelledError):
|
except (SystemExit, KeyboardInterrupt, asyncio.CancelledError):
|
||||||
self.log.warning("exiting")
|
|
||||||
self._stopping = True
|
self._stopping = True
|
||||||
except Exception as err:
|
except Exception as err:
|
||||||
self.log.exception("unexpected fatal error: %s", err)
|
self.log.exception("unexpected fatal error: %s", err)
|
||||||
|
|
Loading…
Reference in a new issue