Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 3 additions & 5 deletions helm/trakrf-backend/templates/configmap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,10 @@ metadata:
data:
APP_ENV: {{ .Values.config.appEnv | quote }}
ENVIRONMENT_LABEL: {{ .Values.config.environmentLabel | quote }}
BACKEND_LOG_LEVEL: {{ .Values.config.logLevel | quote }}
{{- with .Values.config.runtimeLogLevel }}
# LOG_LEVEL is the runtime level the Go backend logger reads (logger/config.go);
# BACKEND_LOG_LEVEL above is legacy and unread by the current backend. Emitted
# only when set, so envs that omit it (prod) keep their APP_ENV→warn default and
# render no LOG_LEVEL key. Set per-env via the root app (preview→info). TRA-974.
# LOG_LEVEL is the runtime level the Go backend logger reads (logger/config.go).
# Emitted only when set, so envs that omit it (prod) keep their APP_ENV→warn
# default and render no LOG_LEVEL key. Set per-env via the root app (preview→info).
LOG_LEVEL: {{ . | quote }}
{{- end }}
SERVICE_NAME: {{ .Values.config.serviceName | quote }}
Expand Down
8 changes: 3 additions & 5 deletions helm/trakrf-backend/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -139,12 +139,10 @@ mqtt:
# Non-secret config (ConfigMap)
config:
appEnv: production
logLevel: info
# runtimeLogLevel → the LOG_LEVEL env the Go backend logger actually reads
# (logger/config.go). Empty = inherit the backend's APP_ENV-based default
# (production→warn, dev/preview→debug). Set per-env (preview→info) to pin a
# level. NOTE: logLevel above feeds the legacy BACKEND_LOG_LEVEL key, which the
# current backend does NOT read — dead-key cleanup tracked in TRA-974.
# (logger/config.go, bare os.Getenv — no BACKEND_ prefix scheme). Empty =
# inherit the backend's APP_ENV-based default (production→warn, dev/preview→
# debug). Set per-env (preview→info) to pin a level.
runtimeLogLevel: ""
serviceName: trakrf-backend
corsOrigin: ""
Expand Down
Loading