From db9e6c2fac6b5971feecbb32a195d54389226221 Mon Sep 17 00:00:00 2001 From: luukas Date: Sun, 2 May 2021 18:15:19 +0300 Subject: [PATCH] Move webserver online logging to the right place --- app/classes/web/tornado.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/app/classes/web/tornado.py b/app/classes/web/tornado.py index 7d0aba7c..ced565ea 100644 --- a/app/classes/web/tornado.py +++ b/app/classes/web/tornado.py @@ -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()