From 819767a47e4f2aa70404139a0be9de00f9034b97 Mon Sep 17 00:00:00 2001 From: Emil Kle <6087242+tr0k@users.noreply.github.com> Date: Tue, 21 Jan 2025 16:46:17 +0100 Subject: [PATCH] Fix bug with wrong reference to audit_enable in logging templates (#199) --- templates/conf/log4j.properties.erb | 2 +- templates/conf/logback.xml.erb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/templates/conf/log4j.properties.erb b/templates/conf/log4j.properties.erb index d154c68..113e011 100644 --- a/templates/conf/log4j.properties.erb +++ b/templates/conf/log4j.properties.erb @@ -34,7 +34,7 @@ zookeeper.tracelog.file=zookeeper_trace.log log4j.rootLogger=${zookeeper.root.logger} -<% if @audit_enable -%> +<% if scope.lookupvar("zookeeper::audit_enable") -%> # # zk audit logging # diff --git a/templates/conf/logback.xml.erb b/templates/conf/logback.xml.erb index 25715c9..932d346 100644 --- a/templates/conf/logback.xml.erb +++ b/templates/conf/logback.xml.erb @@ -88,7 +88,7 @@ -<% if @audit_enable -%> +<% if scope.lookupvar("zookeeper::audit_enable") -%>