Skip to content

Commit

Permalink
restored log level management
Browse files Browse the repository at this point in the history
  • Loading branch information
fabienduhamel committed Jan 5, 2024
1 parent 3124947 commit 31a9db6
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion charts/aws-secrets-synchronizer/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
apiVersion: v2
name: aws-secrets-synchronizer
version: 0.2.1-rc7
version: 0.2.1-rc8
description: K8S Operator that allows you to sync AWS SecretManager secrets with K8S secrets.
type: application
keywords:
Expand Down
2 changes: 1 addition & 1 deletion charts/aws-secrets-synchronizer/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ The following table lists the configurable parameters of the aws-secrets-synchro
|------------------------------|-----------------------------|----------------------------|
| `image.repository` | Image repository | `ghcr.io/reezogit` |
| `image.name` | Image name | `aws-secrets-synchronizer` |
| `image.tag` | Image tag | `0.2.1-rc7` |
| `image.tag` | Image tag | `0.2.1-rc8` |
| `image.pullPolicy` | Image pull policy | `IfNotPresent` |
| `replicaCount` | Replica count | `1` |
| `env` | Environment variables | `{}` |
Expand Down
2 changes: 1 addition & 1 deletion charts/aws-secrets-synchronizer/values.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
image:
repository: "ghcr.io/reezogit"
name: "aws-secrets-synchronizer"
tag: "0.2.1-rc7"
tag: "0.2.1-rc8"
pullPolicy: IfNotPresent

replicaCount: 1
Expand Down
3 changes: 2 additions & 1 deletion script.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
SYNC_EMPTY = os.getenv('SYNC_EMPTY', 'true')
AWS_TAG_KEY = os.getenv('AWS_TAG_KEY', 'SyncedBy')
AWS_TAG_VALUE = os.getenv('AWS_TAG_VALUE', 'aws-secret-synchronizer')
LOG_LEVEL = os.getenv('LOG_LEVEL', logging.INFO)


def get_base_logger(name=None):
Expand All @@ -26,7 +27,7 @@ def get_base_logger(name=None):
structlog.processors.TimeStamper(fmt="iso", utc=False),
structlog.processors.JSONRenderer()
],
wrapper_class=structlog.make_filtering_bound_logger(logging.NOTSET),
wrapper_class=structlog.make_filtering_bound_logger(logging.getLevelName(LOG_LEVEL)),
context_class=dict,
logger_factory=structlog.PrintLoggerFactory(),
cache_logger_on_first_use=False
Expand Down

0 comments on commit 31a9db6

Please sign in to comment.