fix logging

This commit is contained in:
Lex Berezhny 2019-01-07 16:34:22 -05:00
parent 72c0acf269
commit 9b27e81940

View file

@ -410,7 +410,7 @@ class Daemon(metaclass=JSONRPCServerType):
self.server = await asyncio.get_event_loop().create_server( self.server = await asyncio.get_event_loop().create_server(
self.handler, conf.settings['api_host'], conf.settings['api_port'] self.handler, conf.settings['api_host'], conf.settings['api_port']
) )
log.info('lbrynet API listening on TCP %s:%i', *self.server.sockets[0].getsockname()) log.info('lbrynet API listening on TCP %s:%i', *self.server.sockets[0].getsockname()[:2])
await self.setup() await self.setup()
self.analytics_manager.send_server_startup_success() self.analytics_manager.send_server_startup_success()
except OSError: except OSError: