diff --git a/lbry/cli.py b/lbry/cli.py index 64c55eb62..2745cc944 100644 --- a/lbry/cli.py +++ b/lbry/cli.py @@ -221,14 +221,11 @@ 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.') diff --git a/lbry/console.py b/lbry/console.py index 9bf9500f7..3695b49d4 100644 --- a/lbry/console.py +++ b/lbry/console.py @@ -394,7 +394,7 @@ class Advanced(Basic): bar_name = f"{name}#{d['id']}" bar = self.bars.get(bar_name) if bar is None: - assert d['done'][0] == 0 + #assert d['done'][0] == 0 label = d.get('label', name[-11:]) self.get_or_create_bar( f"{name}#{d['id']}", label, d['units'], d['total'], diff --git a/lbry/service/daemon.py b/lbry/service/daemon.py index fc54f5bcc..f89a35b99 100644 --- a/lbry/service/daemon.py +++ b/lbry/service/daemon.py @@ -96,9 +96,7 @@ 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 @@ -110,15 +108,10 @@ 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):