From cdcd03e53dd139d879c7f8751db84dda49d93f50 Mon Sep 17 00:00:00 2001 From: jiangpengcheng Date: Fri, 13 Sep 2024 10:23:33 +0800 Subject: [PATCH] Set complete to false in default log4j config --- controllers/spec/template/java-runtime-log4j.xml.tmpl | 4 ++-- controllers/spec/template/java-runtime-log4j.yaml.tmpl | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/controllers/spec/template/java-runtime-log4j.xml.tmpl b/controllers/spec/template/java-runtime-log4j.xml.tmpl index a8cd6def0..9768cacf1 100644 --- a/controllers/spec/template/java-runtime-log4j.xml.tmpl +++ b/controllers/spec/template/java-runtime-log4j.xml.tmpl @@ -17,7 +17,7 @@ SYSTEM_OUT {{ if .Format | eq "json" }} - true + false true true @@ -34,7 +34,7 @@ \${sys:pulsar.function.log.dir}/\${sys:pulsar.function.log.file}.%d{yyyy-MM-dd-hh-mm}-%i.log.gz {{ if .Format | eq "json" }} - true + false true true diff --git a/controllers/spec/template/java-runtime-log4j.yaml.tmpl b/controllers/spec/template/java-runtime-log4j.yaml.tmpl index e96b15f3b..a08fde0f6 100644 --- a/controllers/spec/template/java-runtime-log4j.yaml.tmpl +++ b/controllers/spec/template/java-runtime-log4j.yaml.tmpl @@ -14,7 +14,7 @@ Configuration: target: SYSTEM_OUT {{ if .Format | eq "json" }} JSONLayout: - complete: true + complete: false compact: true eventEol: true {{ else }} @@ -28,7 +28,7 @@ Configuration: filePattern: \"\${sys:pulsar.function.log.dir}/\${sys:pulsar.function.log.file}.%d{yyyy-MM-dd}-%i.log.gz\" {{ if .Format | eq "json" }} JSONLayout: - complete: true + complete: false compact: true eventEol: true {{ else }}