forked from LBRYCommunity/lbry-sdk
temporary debug print statements
This commit is contained in:
parent
e2aae23575
commit
96aea579ac
2 changed files with 10 additions and 0 deletions
|
@ -221,11 +221,14 @@ def main(argv=None):
|
|||
if args.help:
|
||||
args.start_parser.print_help()
|
||||
elif args.full_node:
|
||||
print('Instantiating FullNode')
|
||||
service = FullNode(Ledger(conf))
|
||||
if conf.console == "advanced":
|
||||
console = AdvancedConsole(service)
|
||||
else:
|
||||
print('Instantiating BasicConsole')
|
||||
console = BasicConsole(service)
|
||||
print('Daemon(service, console).run()')
|
||||
return Daemon(service, console).run()
|
||||
else:
|
||||
print('Only `start --full-node` is currently supported.')
|
||||
|
|
|
@ -97,7 +97,9 @@ class Daemon:
|
|||
pass # Not implemented on Windows
|
||||
|
||||
try:
|
||||
print('loop.run_until_complete(self.start())')
|
||||
loop.run_until_complete(self.start())
|
||||
print('loop.run_forever()')
|
||||
loop.run_forever()
|
||||
except (GracefulExit, KeyboardInterrupt, asyncio.CancelledError):
|
||||
pass
|
||||
|
@ -109,10 +111,15 @@ class Daemon:
|
|||
loop.run_until_complete(loop.shutdown_asyncgens())
|
||||
|
||||
async def start(self):
|
||||
print('self.console.starting()')
|
||||
self.console.starting()
|
||||
print('await self.runner.setup()')
|
||||
await self.runner.setup()
|
||||
print('TCPSite(self.runner, self.conf.api_host, self.conf.api_port)')
|
||||
site = TCPSite(self.runner, self.conf.api_host, self.conf.api_port)
|
||||
print('await site.start()')
|
||||
await site.start()
|
||||
print('await self.service.start()')
|
||||
await self.service.start()
|
||||
|
||||
async def stop(self):
|
||||
|
|
Loading…
Reference in a new issue