mirror of https://github.com/MISP/misp-dashboard
Removed prints
parent
e3cefa45da
commit
46a88e80e7
|
@ -36,7 +36,6 @@ class LogItem():
|
||||||
for item in json.loads(cfg.get('Log', 'fieldname_order')):
|
for item in json.loads(cfg.get('Log', 'fieldname_order')):
|
||||||
FIELDNAME_ORDER.append(item)
|
FIELDNAME_ORDER.append(item)
|
||||||
|
|
||||||
#def __init__(self, feed='', time='', level='level', src='source', name='name', message='wonderful meesage'):
|
|
||||||
def __init__(self, feed):
|
def __init__(self, feed):
|
||||||
self.time = strftime("%H:%M:%S", now())
|
self.time = strftime("%H:%M:%S", now())
|
||||||
#FIXME Parse feed message?
|
#FIXME Parse feed message?
|
||||||
|
@ -89,7 +88,6 @@ def index():
|
||||||
"{:.0f}".format(cfg.getint('Dashboard' ,'size_world_pannel_perc')/100*ratioCorrection),
|
"{:.0f}".format(cfg.getint('Dashboard' ,'size_world_pannel_perc')/100*ratioCorrection),
|
||||||
"{:.0f}".format((100-cfg.getint('Dashboard' ,'size_world_pannel_perc'))/100*ratioCorrection)
|
"{:.0f}".format((100-cfg.getint('Dashboard' ,'size_world_pannel_perc'))/100*ratioCorrection)
|
||||||
]
|
]
|
||||||
print(pannelSize)
|
|
||||||
return render_template('index.html',
|
return render_template('index.html',
|
||||||
pannelSize=pannelSize,
|
pannelSize=pannelSize,
|
||||||
graph_log_refresh_rate=cfg.getint('Dashboard' ,'graph_log_refresh_rate'),
|
graph_log_refresh_rate=cfg.getint('Dashboard' ,'graph_log_refresh_rate'),
|
||||||
|
@ -119,7 +117,6 @@ def event_stream_log():
|
||||||
def event_stream_maps():
|
def event_stream_maps():
|
||||||
for msg in subscriber_map.listen():
|
for msg in subscriber_map.listen():
|
||||||
content = msg['data'].decode('utf8')
|
content = msg['data'].decode('utf8')
|
||||||
print(content)
|
|
||||||
yield 'data: {}\n\n'.format(content)
|
yield 'data: {}\n\n'.format(content)
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
|
|
|
@ -79,6 +79,7 @@ def handler_attribute(jsonattr):
|
||||||
to_push = []
|
to_push = []
|
||||||
for field in json.loads(cfg.get('Log', 'fieldname_order')):
|
for field in json.loads(cfg.get('Log', 'fieldname_order')):
|
||||||
to_push.append(jsonattr[field])
|
to_push.append(jsonattr[field])
|
||||||
|
to_push.append("blabla")
|
||||||
|
|
||||||
#try to get coord
|
#try to get coord
|
||||||
if jsonattr['category'] == "Network activity":
|
if jsonattr['category'] == "Network activity":
|
||||||
|
|
Loading…
Reference in New Issue