Skip to content

Commit 43dd27b

Browse files
committed
Allow to configure log format in helm chart
1 parent 98e7a02 commit 43dd27b

File tree

3 files changed

+5
-6
lines changed

3 files changed

+5
-6
lines changed

install/helm/open-match/templates/om-configmap-default.yaml

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -26,15 +26,11 @@ metadata:
2626
data:
2727
matchmaker_config_default.yaml: |-
2828
logging:
29-
{{- if .Values.global.logging.level }}
30-
level: {{ .Values.global.logging.level }}
31-
{{- else }}
32-
level: debug
33-
{{- end }}
29+
level: {{ default "debug" .Values.global.logging.level }}
3430
{{- if .Values.global.telemetry.stackdriverMetrics.enabled }}
3531
format: stackdriver
3632
{{- else }}
37-
format: text
33+
format: {{ default "text" .Values.global.logging.format }}
3834
{{- end }}
3935
rpc: {{ .Values.global.logging.rpc.enabled }}
4036
# Open Match applies the exponential backoff strategy for its retryable gRPC calls.

install/helm/open-match/values-production.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -290,6 +290,7 @@ global:
290290
mountPath: /app/secrets/tls/rootca
291291

292292
logging:
293+
level: info
293294
rpc:
294295
enabled: false
295296

install/helm/open-match/values.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -288,6 +288,8 @@ global:
288288
mountPath: /app/secrets/tls/rootca
289289

290290
logging:
291+
level: info
292+
format: text
291293
rpc:
292294
enabled: false
293295

0 commit comments

Comments
 (0)