def start(self):
"""Start the application and the ioloop"""
self.log.info("Starting server with options:")
for trait_name in self._command_line_config.trait_names():
self.log.info("{}: {}".format(
trait_name,
getattr(self._command_line_config, trait_name)
)
)
self.log.info("Listening for connections on {}:{}".format(
self.command_line_config.ip,
self.command_line_config.port))
self.listen(self.command_line_config.port)
tornado.ioloop.IOLoop.current().start()
# Private
评论列表
文章目录