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)) }}
{% 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 %}
{{ (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 %}