This repository was archived by the owner on Jul 26, 2022. It is now read-only.
File tree 3 files changed +8
-2
lines changed
charts/kubernetes-external-secrets
3 files changed +8
-2
lines changed Original file line number Diff line number Diff line change 16
16
AWS_DEFAULT_REGION : us-west-2
17
17
POLLER_INTERVAL_MILLISECONDS : 10000 # Caution, setting this frequency may incur additional charges on some platforms
18
18
LOG_LEVEL : info
19
+ # Print logs level as string ("info") rather than integer (30)
20
+ # USE_HUMAN_READABLE_LOG_LEVELS: true
19
21
METRICS_PORT : 3001
20
22
VAULT_ADDR : http://127.0.0.1:8200
21
23
# GOOGLE_APPLICATION_CREDENTIALS: /app/gcp-creds/gcp-creds.json
Original file line number Diff line number Diff line change @@ -24,6 +24,8 @@ const pollerIntervalMilliseconds = process.env.POLLER_INTERVAL_MILLISECONDS
24
24
? Number ( process . env . POLLER_INTERVAL_MILLISECONDS ) : 10000
25
25
26
26
const logLevel = process . env . LOG_LEVEL || 'info'
27
+ const useHumanReadableLogLevels = 'USE_HUMAN_READABLE_LOG_LEVELS' in process . env
28
+
27
29
const pollingDisabled = 'DISABLE_POLLING' in process . env
28
30
29
31
const rolePermittedAnnotation = process . env . ROLE_PERMITTED_ANNOTATION || 'iam.amazonaws.com/permitted'
@@ -43,5 +45,6 @@ module.exports = {
43
45
namingPermittedAnnotation,
44
46
pollingDisabled,
45
47
logLevel,
46
- customResourceManagerDisabled
48
+ customResourceManagerDisabled,
49
+ useHumanReadableLogLevels
47
50
}
Original file line number Diff line number Diff line change @@ -35,7 +35,8 @@ const logger = pino({
35
35
serializers : {
36
36
err : pino . stdSerializers . err
37
37
} ,
38
- level : envConfig . logLevel
38
+ level : envConfig . logLevel ,
39
+ useLevelLabels : envConfig . useHumanReadableLogLevels
39
40
} )
40
41
41
42
const customResourceManager = new CustomResourceManager ( {
You can’t perform that action at this time.
0 commit comments