Skip to content

Commit 00e03b8

Browse files
committed
[SPARK-52679] Update default log4j2 properties in Helm chart to include MDC keys
### What changes were proposed in this pull request? This PR updates default log4j properties in Operator helm chart, to make sure it surfaces MDC keys as needed ### Why are the changes needed? The layout does not include all MDC keys which would provide critical information regarding the resource being reconciled. ### Does this PR introduce _any_ user-facing change? Logging enhancements expected for operator ### How was this patch tested? CIs for lint, and validated logging in dev environments ### Was this patch authored or co-authored using generative AI tooling? No
1 parent 51c6083 commit 00e03b8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

build-tools/helm/spark-kubernetes-operator/values.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -169,14 +169,14 @@ operatorConfiguration:
169169
# Otherwise, below would override default conf files
170170
append: true
171171
log4j2.properties: |+
172-
# Logging Overrides
172+
# Logging Overrides on top of the logging , e.g.
173173
rootLogger.level=INFO
174174
rootLogger.appenderRef.stdout.ref = console
175175
appender.console.type = Console
176176
appender.console.name = console
177177
appender.console.target = SYSTEM_ERR
178178
appender.console.layout.type = PatternLayout
179-
appender.console.layout.pattern = %d{yy/MM/dd HH:mm:ss} %p %c{1}: %m%n%ex
179+
appender.console.layout.pattern=%d{yy/MM/dd HH:mm:ss} %p %X %C{1.} [%t] %m%n%ex
180180
spark-operator.properties: |+
181181
# Property Overrides. e.g.
182182
# spark.kubernetes.operator.reconciler.intervalSeconds=60

0 commit comments

Comments
 (0)