diff --git a/templates/dashboard/http_functions/logs.html b/templates/dashboard/http_functions/logs.html index b63e259..956bf31 100644 --- a/templates/dashboard/http_functions/logs.html +++ b/templates/dashboard/http_functions/logs.html @@ -60,9 +60,13 @@ history_url=url_for('http.history', function_id=function_id)) }}
- {% for log in invocation.logs %} -
{{ log[0] }}
- {% endfor %} +
{% if invocation.logs and invocation.logs[0] is iterable and invocation.logs[0] is not string -%}
+                        {{- invocation.logs | map('join', ' ') | join('\n') -}}
+                    {%- elif invocation.logs is iterable and invocation.logs is not string -%}
+                        {{- invocation.logs | join('\n') -}}
+                    {%- else -%}
+                        {{- invocation.logs | string -}}
+                    {%- endif -%}
{% if not invocation.logs %}
No logs available
{% endif %} diff --git a/templates/dashboard/timer_functions/logs.html b/templates/dashboard/timer_functions/logs.html index 2d221e9..d7694be 100644 --- a/templates/dashboard/timer_functions/logs.html +++ b/templates/dashboard/timer_functions/logs.html @@ -48,8 +48,13 @@ history_url=url_for('timer.history', function_id=function_id)) }}
-
{{ (invocation.logs | map('first')) | join('\n') }}
+
{% if invocation.logs and invocation.logs[0] is iterable and invocation.logs[0] is not string -%}
+                        {{- invocation.logs | map('join', ' ') | join('\n') -}}
+                    {%- elif invocation.logs is iterable and invocation.logs is not string -%}
+                        {{- invocation.logs | join('\n') -}}
+                    {%- else -%}
+                        {{- invocation.logs | string -}}
+                    {%- endif -%}
{% if not invocation.logs %}
No logs available
{% endif %}