mirror of
https://gitlab.com/crafty-controller/crafty-4.git
synced 2024-08-30 18:23:09 +00:00
Move webserver online logging to the right place
This commit is contained in:
parent
890e0a1925
commit
db9e6c2fac
@ -113,9 +113,6 @@ class Webserver:
|
|||||||
|
|
||||||
logger.info("Starting Web Server on ports http:{} https:{}".format(http_port, https_port))
|
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())
|
asyncio.set_event_loop(asyncio.new_event_loop())
|
||||||
|
|
||||||
tornado.template.Loader('.')
|
tornado.template.Loader('.')
|
||||||
@ -155,6 +152,11 @@ class Webserver:
|
|||||||
self.HTTPS_Server = tornado.httpserver.HTTPServer(app, ssl_options=cert_objects)
|
self.HTTPS_Server = tornado.httpserver.HTTPServer(app, ssl_options=cert_objects)
|
||||||
self.HTTPS_Server.listen(https_port)
|
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:")
|
console.info("Server Init Complete: Listening For Connections:")
|
||||||
|
|
||||||
self.ioloop = tornado.ioloop.IOLoop.instance()
|
self.ioloop = tornado.ioloop.IOLoop.instance()
|
||||||
|
Loading…
Reference in New Issue
Block a user