This commit is contained in:
Daniel Akulenok
2024-05-14 14:12:19 +02:00
parent 8077d8c05c
commit 52d5fa2d3f
3 changed files with 5 additions and 12 deletions

View File

@@ -1,11 +1,10 @@
{% macro logging(logging) %}
logging {
{% filter indent(bind9_config_indent, true) %}
{% for category in logging.categories if logging.categories is defined and logging.categories %}
{% for category in item.logging.categories if item.logging.categories is defined and item.logging.categories %}
category {{ category.name }} {
{{ functions.simple_item_list(category.channels) }}};
{% endfor %}
{% for channel in logging.channels if logging.channels is defined and logging.channels %}
{% for channel in item.logging.channels if item.logging.channels is defined and item.logging.channels %}
channel {{ channel.name }} {
{% filter indent(bind9_config_indent, true) %}
{% if channel.file is defined and channel.file %}
@@ -26,4 +25,3 @@ file "{{ channel.file.name }}"
};
{% endfor %}
{% endfilter %}};
{% endmacro %}