diff --git a/imaginaerraum_door_admin/templates/token_log.html b/imaginaerraum_door_admin/templates/token_log.html
index 2c3be2b..43695ef 100644
--- a/imaginaerraum_door_admin/templates/token_log.html
+++ b/imaginaerraum_door_admin/templates/token_log.html
@@ -6,16 +6,26 @@
{% block content %}
-Date |
Timestamp |
+Level |
Message |
{% for line in log %}
-
+ {% if line[2] == 'INFO' %}
+
+ {% elif line[2] == 'WARNING'%}
+
+ {% elif line[2] == 'ERROR' %}
+
+ {% elif line[2] == 'DEBUG'%}
+
+ {% else %}
+
+ {% endif %}
{{ line[0] }} |
- {{ line[1] }} |
{{ line[2] }} |
+ {{ line[3] }} |
{% endfor %}
diff --git a/imaginaerraum_door_admin/webapp.py b/imaginaerraum_door_admin/webapp.py
index 1f336f3..1e74892 100644
--- a/imaginaerraum_door_admin/webapp.py
+++ b/imaginaerraum_door_admin/webapp.py
@@ -484,7 +484,7 @@ def create_application(config):
with open(config.nfc_log) as f:
log += f.readlines()
log.reverse()
- log = map(lambda l: l.split(' ', 2), log)
+ log = [l.split(' - ') for l in log]
return render_template('token_log.html', log=log)
except Exception as e:
flash(f"NFC logfile {Path(config.nfc_log).absolute()} konnte nicht gelesen werden. Exception: {e}")