Skip to content

Commit

Permalink
adjust logging level of any package (#203)
Browse files Browse the repository at this point in the history
  • Loading branch information
cccs-nik authored Apr 22, 2024
1 parent 521120a commit 7b32a33
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 3 deletions.
4 changes: 2 additions & 2 deletions valeriano-manassero/trino/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: v1
appVersion: "433"
description: High performance, distributed SQL query engine for big data
name: trino
version: 9.2.0
version: 9.3.0
kubeVersion: ">= 1.24.0-0 < 1.29.0-0"
home: https://trino.io
icon: https://trino.io/assets/images/trino-logo/trino-ko_tiny-alt.svg
Expand All @@ -27,4 +27,4 @@ keywords:
annotations:
artifacthub.io/changes: |
- kind: changed
description: Add the capability to configure extra volumes and extra volume mounts.
description: Add ability to adjust logging level of any package.
3 changes: 2 additions & 1 deletion valeriano-manassero/trino/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# trino

![Version: 9.2.0](https://img.shields.io/badge/Version-9.2.0-informational?style=flat-square) ![AppVersion: 433](https://img.shields.io/badge/AppVersion-433-informational?style=flat-square)
![Version: 9.3.0](https://img.shields.io/badge/Version-9.3.0-informational?style=flat-square) ![AppVersion: 433](https://img.shields.io/badge/AppVersion-433-informational?style=flat-square)

High performance, distributed SQL query engine for big data

Expand Down Expand Up @@ -55,6 +55,7 @@ Kubernetes: `>= 1.24.0-0 < 1.29.0-0`
| config.general.httpsServer.keystore.path | string | `"/usr/local/certs/clustercoord.pem"` | |
| config.general.httpsServer.port | int | `8443` | |
| config.general.internalCommunicationSharedSecret | string | `"some-secret"` | |
| config.general.log.trino.extraLevels | object | `{}` | |
| config.general.log.trino.level | string | `"INFO"` | |
| config.general.node.dataDir | string | `"/data/trino"` | |
| config.general.node.environment | string | `"production"` | |
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,9 @@ data:

log.properties: |
io.trino={{ .Values.config.general.log.trino.level }}
{{- range $package, $level := .Values.config.general.log.trino.extraLevels }}
{{ $package }}={{ $level }}
{{- end }}

{{ if .Values.config.general.authenticationType }}{{ if contains "PASSWORD" .Values.config.general.authenticationType }}
password-authenticator.properties: |
Expand Down
3 changes: 3 additions & 0 deletions valeriano-manassero/trino/templates/configmap-worker.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,9 @@ data:

log.properties: |
io.trino={{ .Values.config.general.log.trino.level }}
{{- range $package, $level := .Values.config.general.log.trino.extraLevels }}
{{ $package }}={{ $level }}
{{- end }}

{{- if .Values.faultTolerance.enabled }}{{- if not .Values.faultTolerance.configAsSecret }}
exchange-manager.properties: |
Expand Down
4 changes: 4 additions & 0 deletions valeriano-manassero/trino/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,10 @@ config:
log:
trino:
level: INFO
extraLevels: {}
# For example:
# extraLevels:
# org.apache.kafka: WARN
path: /etc/trino
http:
port: 8080
Expand Down

0 comments on commit 7b32a33

Please sign in to comment.