mirror of
https://github.com/ShaYmez/HBmonitor.git
synced 2024-11-25 09:18:53 -05:00
Update monitor.py
fix the problem "not defined _bmessage"
This commit is contained in:
parent
b4023aac20
commit
77215f9a97
@ -643,7 +643,8 @@ class dashboard(WebSocketServerProtocol):
|
|||||||
self.sendMessage(('b' + btemplate.render(_table=BTABLE['BRIDGES'])).encode('utf-8'))
|
self.sendMessage(('b' + btemplate.render(_table=BTABLE['BRIDGES'])).encode('utf-8'))
|
||||||
for _message in LOGBUF:
|
for _message in LOGBUF:
|
||||||
if _message:
|
if _message:
|
||||||
self.sendMessage('l' + _bmessage)
|
_bmessage = ('l' + _message).encode('utf-8')
|
||||||
|
self.sendMessage(_bmessage)
|
||||||
|
|
||||||
def onMessage(self, payload, isBinary):
|
def onMessage(self, payload, isBinary):
|
||||||
if isBinary:
|
if isBinary:
|
||||||
|
Loading…
Reference in New Issue
Block a user