Skip to content
Snippets Groups Projects
Commit 7557aabe authored by Tamas Gal's avatar Tamas Gal :speech_balloon:
Browse files

Add preliminary log viewer

parent 07734295
No related branches found
No related tags found
No related merge requests found
......@@ -151,6 +151,13 @@ def trigger():
return render_template('plots.html', plots=expand_wildcards(TRIGGER_PLOTS))
@app.route('/logs.html')
@requires_auth
def logs():
msg_logs = glob("logs/MSG*.log")
return render_template('logs.html', logs=msg_logs)
@app.route('/plots/<path:filename>')
@requires_auth
def custom_static(filename):
......
{% extends "base.html" %}
{% block logs %}
<div class="container-fluid" id="logs">
{% for filename in logs %}
<div class="row">
<div class="col-md-12">
{{ filename }}
</div>
</div>
{% endfor %}
</div>
{% endblock %}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment