Tornado listens in own thread and Fr2 background color in timeline
This commit is contained in:
parent
7b329fbfba
commit
4d2a52ddb1
2 changed files with 8 additions and 2 deletions
|
@ -303,20 +303,23 @@ class Panopticon(object):
|
||||||
{"path": web_dir, "default_filename": 'index.html'}),
|
{"path": web_dir, "default_filename": 'index.html'}),
|
||||||
], debug=True)
|
], debug=True)
|
||||||
|
|
||||||
self.application.listen(config['web']['port'])
|
|
||||||
# self.loop.configure(evt_loop)
|
# self.loop.configure(evt_loop)
|
||||||
|
|
||||||
def start(self):
|
def start(self):
|
||||||
|
|
||||||
|
|
||||||
evt_loop = asyncio.new_event_loop()
|
evt_loop = asyncio.new_event_loop()
|
||||||
asyncio.set_event_loop(evt_loop)
|
asyncio.set_event_loop(evt_loop)
|
||||||
|
|
||||||
self.loop = tornado.ioloop.IOLoop.current()
|
self.loop = tornado.ioloop.IOLoop.current()
|
||||||
|
|
||||||
|
self.application.listen(self.config['web']['port'])
|
||||||
|
|
||||||
|
|
||||||
thread = threading.Thread(
|
thread = threading.Thread(
|
||||||
target=self.broadcastLoggingQueueToWs, kwargs={'wsHandler': self.wsHandler, 'q': self.command.logQueue}, name=f"panopticon/logws")
|
target=self.broadcastLoggingQueueToWs, kwargs={'wsHandler': self.wsHandler, 'q': self.command.logQueue}, name=f"panopticon/logws")
|
||||||
thread.start()
|
thread.start()
|
||||||
|
|
||||||
|
|
||||||
task = evt_loop.create_task(
|
task = evt_loop.create_task(
|
||||||
self.statusSender(self.wsHandler))
|
self.statusSender(self.wsHandler))
|
||||||
|
|
||||||
|
|
|
@ -109,6 +109,9 @@ font-size: 20pt;
|
||||||
|
|
||||||
}
|
}
|
||||||
.status-running.lang-fr-FR{
|
.status-running.lang-fr-FR{
|
||||||
|
background: #f00;
|
||||||
|
}
|
||||||
|
.status-running.lang-fr-FR2{
|
||||||
background: #5a434d;
|
background: #5a434d;
|
||||||
}
|
}
|
||||||
.status-running.lang-de-DE{
|
.status-running.lang-de-DE{
|
||||||
|
|
Loading…
Reference in a new issue