From d9c8a8e2022905bb3f0c5d9e70c622898d9a5b1c Mon Sep 17 00:00:00 2001 From: wforget <643348094@qq.com> Date: Thu, 26 Oct 2023 13:58:57 +0800 Subject: [PATCH] [KYUUBI #5528] Remove duplicate properties tag and respect KYUUBI_LOG_DIR ### _Why are the changes needed?_ Remove duplicate attribute tags to fix `k8sAuditLogPath` property not found. ![image](https://github.com/apache/kyuubi/assets/17894939/824cd211-db59-4d84-8b33-cd5619716b2f) and set logDir to KYUUBI_LOG_DIR. ![image](https://github.com/apache/kyuubi/assets/17894939/0c435589-152b-4dca-8ce0-cc967ce9e3e6) ### _How was this patch tested?_ - [ ] Add some test cases that check the changes thoroughly including negative and positive cases if possible - [ ] Add screenshots for manual tests if appropriate - [ ] [Run test](https://kyuubi.readthedocs.io/en/master/contributing/code/testing.html#running-tests) locally before make a pull request ### _Was this patch authored or co-authored using generative AI tooling?_ Closes #5528 from wForget/hotfix. Closes #5528 060e39698 [wforget] Respect KYUUBI_LOG_DIR a1a808b0a [wforget] Remove duplicate properties tag Authored-by: wforget <643348094@qq.com> Signed-off-by: Cheng Pan (cherry picked from commit fbf395408f28a062f917d9132da95b516b9d4b98) Signed-off-by: Cheng Pan --- conf/log4j2.xml.template | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/conf/log4j2.xml.template b/conf/log4j2.xml.template index 2601690eb90..215fddf47f4 100644 --- a/conf/log4j2.xml.template +++ b/conf/log4j2.xml.template @@ -21,10 +21,9 @@ Set to debug or trace if log4j initialization is failing. --> + ${env:KYUUBI_LOG_DIR} rest-audit.log rest-audit-%d{yyyy-MM-dd}-%i.log - - k8s-audit.log k8s-audit-%d{yyyy-MM-dd}-%i.log @@ -35,7 +34,7 @@ - @@ -43,7 +42,7 @@ -