diff --git a/charts/kamu-api-server/Chart.yaml b/charts/kamu-api-server/Chart.yaml index c986a70..bcce283 100644 --- a/charts/kamu-api-server/Chart.yaml +++ b/charts/kamu-api-server/Chart.yaml @@ -2,7 +2,7 @@ apiVersion: v2 name: kamu-api-server description: API server component of the Kamu Compute Node type: application -version: 0.29.3 +version: 0.29.4 appVersion: "0.29.1" home: https://kamu.dev icon: https://www.kamu.dev/images/kamu_logo_icon_bg_square.png diff --git a/charts/kamu-api-server/templates/deployment.yaml b/charts/kamu-api-server/templates/deployment.yaml index f489aa2..5b93975 100644 --- a/charts/kamu-api-server/templates/deployment.yaml +++ b/charts/kamu-api-server/templates/deployment.yaml @@ -45,6 +45,8 @@ spec: env: - name: RUST_BACKTRACE value: "1" + - name: RUST_LOG + value: {{ .Values.app.logLevel | quote }} {{- if .Values.app.awsCredentials.enabled }} {{- $secretName := include "kamu-api-server.awsCredentialsSecretName" . }} - name: AWS_ENDPOINT diff --git a/charts/kamu-api-server/values.schema.json b/charts/kamu-api-server/values.schema.json index c73f5c1..18f9f29 100644 --- a/charts/kamu-api-server/values.schema.json +++ b/charts/kamu-api-server/values.schema.json @@ -5,9 +5,13 @@ "app": { "type": "object", "required": [ + "logLevel", "config" ], "properties": { + "logLevel": { + "type": "string" + }, "config": { "type": "object", "additionalProperties": false, diff --git a/charts/kamu-api-server/values.yaml b/charts/kamu-api-server/values.yaml index 526c681..3499e40 100644 --- a/charts/kamu-api-server/values.yaml +++ b/charts/kamu-api-server/values.yaml @@ -3,6 +3,8 @@ ############################################################################### app: + logLevel: "debug,reqwest=info,hyper=info,h2=info" + # TODO: generate schema for config from DTOs config: engine: diff --git a/charts/kamu-oracle-provider/Chart.yaml b/charts/kamu-oracle-provider/Chart.yaml index 11e7c00..45b7129 100644 --- a/charts/kamu-oracle-provider/Chart.yaml +++ b/charts/kamu-oracle-provider/Chart.yaml @@ -2,7 +2,7 @@ apiVersion: v2 name: kamu-oracle-provider description: Oracle provider that uses Kamu Node to supply data to blockchain smart contracts type: application -version: 0.29.3 +version: 0.29.4 appVersion: "0.29.1" home: https://kamu.dev icon: https://www.kamu.dev/images/kamu_logo_icon_bg_square.png diff --git a/charts/kamu-oracle-provider/templates/deployment.yaml b/charts/kamu-oracle-provider/templates/deployment.yaml index 0a258ec..0eff1c5 100644 --- a/charts/kamu-oracle-provider/templates/deployment.yaml +++ b/charts/kamu-oracle-provider/templates/deployment.yaml @@ -40,6 +40,8 @@ spec: env: - name: RUST_BACKTRACE value: "1" + - name: RUST_LOG + value: {{ .Values.app.logLevel | quote }} {{- range $key, $value := .Values.extraEnv }} - name: {{ $key | quote }} value: {{ $value | quote }} diff --git a/charts/kamu-oracle-provider/values.schema.json b/charts/kamu-oracle-provider/values.schema.json index 45888d4..b9bcfaa 100644 --- a/charts/kamu-oracle-provider/values.schema.json +++ b/charts/kamu-oracle-provider/values.schema.json @@ -5,9 +5,13 @@ "app": { "type": "object", "required": [ + "logLevel", "config" ], "properties": { + "logLevel": { + "type": "string" + }, "config": { "type": "object", "required": [], diff --git a/charts/kamu-oracle-provider/values.yaml b/charts/kamu-oracle-provider/values.yaml index 362c9c6..a8c1ff4 100644 --- a/charts/kamu-oracle-provider/values.yaml +++ b/charts/kamu-oracle-provider/values.yaml @@ -3,6 +3,8 @@ ############################################################################### app: + logLevel: "debug,kamu=trace,alloy_transport_http=info,alloy_rpc_client=info,reqwest=info,hyper=info,h2=info" + # TODO: generate schema for config from DTOs config: http_address: "0.0.0.0"