Skip to content

Commit

Permalink
Making logging level configurable (#406)
Browse files Browse the repository at this point in the history
* Making logging level configurable

* auto patch increment

---------

Co-authored-by: ras-rm-pr-bot <[email protected]>
  • Loading branch information
pricem14pc and ras-rm-pr-bot authored Jan 11, 2024
1 parent 83dfaf6 commit 60db81b
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 3 deletions.
4 changes: 2 additions & 2 deletions _infra/helm/secure-message/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ type: application

# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
version: 2.1.62
version: 2.1.63

# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application.
appVersion: 2.1.62
appVersion: 2.1.63
2 changes: 2 additions & 0 deletions _infra/helm/secure-message/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -185,5 +185,7 @@ spec:
secretKeyRef:
name: secure-message
key: client-secret
- name: LOGGING_LEVEL
value: "{{ .Values.app.config.loggingLevel }}"
resources:
{{ toYaml .Values.resources.application | nindent 12 }}
4 changes: 4 additions & 0 deletions _infra/helm/secure-message/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -61,3 +61,7 @@ gcp:
dns:
enabled: false
wellKnownPort: 8080

app:
config:
loggingLevel: "INFO"
3 changes: 2 additions & 1 deletion config.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ class Config:

VERSION = "1.3.0"
DATABASE_URL = os.getenv("DATABASE_URL", "postgresql://postgres:postgres@localhost:5432")
LOGGING_LEVEL = os.getenv("LOGGING_LEVEL", "DEBUG")
LOGGING_LEVEL = os.getenv("LOGGING_LEVEL", "INFO")

# EMAIL NOTIFICATION SETTINGS
NOTIFY_VIA_GOV_NOTIFY = os.getenv("NOTIFY_VIA_GOV_NOTIFY")
Expand Down Expand Up @@ -58,6 +58,7 @@ class Config:


class DevConfig(Config):
LOGGING_LEVEL = os.getenv("LOGGING_LEVEL", "DEBUG")
JWT_SECRET = os.getenv("JWT_SECRET", "testsecret")
NOTIFY_VIA_GOV_NOTIFY = os.getenv("NOTIFY_VIA_GOV_NOTIFY", "0")
NOTIFICATION_TEMPLATE_ID = os.getenv("NOTIFICATION_TEMPLATE_ID", "test_notification_template_id")
Expand Down

0 comments on commit 60db81b

Please sign in to comment.