From 424163e27735ec143af8b22c293fe32a7fd22957 Mon Sep 17 00:00:00 2001 From: Vivien Lacourba Date: Thu, 20 Jul 2017 13:51:14 +0200 Subject: [PATCH] don't add print-* logging options if destination is null --- templates/logging_channel.erb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/templates/logging_channel.erb b/templates/logging_channel.erb index 7efdb73..e20e5a7 100644 --- a/templates/logging_channel.erb +++ b/templates/logging_channel.erb @@ -12,7 +12,9 @@ <%- if @severity and @severity != '' -%> severity <%= @severity %>; <%- end -%> +<%- if @destination != 'null' -%> print-category <%= @print_category ? 'yes' : 'no' %>; print-severity <%= @print_severity ? 'yes' : 'no' %>; print-time <%= @print_time ? 'yes' : 'no' %>; +<%- end -%> };