Move webserver online logging to the right place

This commit is contained in:
luukas 2021-05-02 18:15:19 +03:00
parent 890e0a1925
commit db9e6c2fac

View File

@ -113,9 +113,6 @@ class Webserver:
logger.info("Starting Web Server on ports http:{} https:{}".format(http_port, https_port))
console.info("http://{}:{} is up and ready for connection:".format(helper.get_local_ip(), http_port))
console.info("https://{}:{} is up and ready for connection:".format(helper.get_local_ip(), https_port))
asyncio.set_event_loop(asyncio.new_event_loop())
tornado.template.Loader('.')
@ -155,6 +152,11 @@ class Webserver:
self.HTTPS_Server = tornado.httpserver.HTTPServer(app, ssl_options=cert_objects)
self.HTTPS_Server.listen(https_port)
logger.info("http://{}:{} is up and ready for connections.".format(helper.get_local_ip(), http_port))
logger.info("https://{}:{} is up and ready for connections.".format(helper.get_local_ip(), https_port))
console.info("http://{}:{} is up and ready for connections.".format(helper.get_local_ip(), http_port))
console.info("https://{}:{} is up and ready for connections.".format(helper.get_local_ip(), https_port))
console.info("Server Init Complete: Listening For Connections:")
self.ioloop = tornado.ioloop.IOLoop.instance()