Skip to content
Snippets Groups Projects
Unverified Commit fa7043c1 authored by Antoine R. Dumont's avatar Antoine R. Dumont
Browse files

deployment/provenance: Unify log level setup

Refs. swh/infra/sysadm-environment#5608
parent e9d3043b
No related branches found
No related tags found
No related merge requests found
......@@ -43,6 +43,7 @@ data:
{{- if not (hasKey $configuration "port") }}
{{- $port := eq $type "rpc" | ternary $.Values.provenance.rpcPort $.Values.provenance.grpcPort -}}
{{- $configuration := set $configuration "port" $port -}}
{{- $logLevel := .configuration.logLevel | default $.Values.provenance.logLevel | default "INFO" | upper -}}
{{- end -}}
{{- toYaml $configuration -}}
{{- end }}
......
......@@ -18,6 +18,7 @@
"Values" $.Values) | fromYaml -}}
{{- $type := $provenanceConfig.type -}}
{{- $port := $provenanceConfig.port -}}
{{- $logLevel := $provenanceConfig.logLevel -}}
---
apiVersion: apps/v1
kind: Deployment
......@@ -141,7 +142,7 @@ spec:
- name: STATSD_SERVICE_TYPE
value: {{ $serviceType }}
- name: SWH_LOG_LEVEL
value: {{ $provenanceConfig.logLevel | default $.Values.provenance.logLevel | default "INFO" | quote }}
value: {{ $logLevel }}
- name: SWH_LOG_CONFIG_JSON
value: /etc/swh/logging/logging-gunicorn.json
{{- if $.Values.provenance.sentry.enabled }}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment