-{% if not file_content -%}
-{% set lines = lines | map(
- 'replace', 'DEBUG', '
DEBUG') | map(
- 'replace', 'INFO', '
INFO') | map(
- 'replace', 'ERROR', '
ERROR') | map(
- 'replace', 'CRITICAL', '
CRITICAL') | map(
- 'replace', 'WARNING', '
WARNING') -%}
-{% endif -%}
{% for line in lines -%}
+{% if not file_content -%}
+{% set line = line | replace(
+ 'DEBUG', 'DEBUG') | replace(
+ 'INFO', 'INFO') | replace(
+ 'ERROR', 'ERROR') | replace(
+ 'CRITICAL', 'CRITICAL') | replace(
+ 'WARNING', 'WARNING') -%}
+{% endif -%}
{% if mode == "tags" -%}
{{line}}
{% else -%}