Skip to content

Commit

Permalink
feat(APIM-538): update single line env var to boolean, add test env var
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex Bramhill committed Jul 26, 2023
1 parent fa20083 commit ed64da6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/main.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ import { LoggerModule } from 'nestjs-pino';
transport: {
target: 'pino-pretty',
options: {
singleLine: config.get<string>('app.singleLineLogLevel'),
singleLine: config.get<boolean>('app.singleLineLogLevel'),
},
},
},
Expand Down
2 changes: 2 additions & 0 deletions test/support/environment-variables.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ export const ENVIRONMENT_VARIABLES = Object.freeze({
NODE_ENV: 'test',
LOG_LEVEL: 'debug',
REDACT_LOGS: false,
SINGLE_LINE_LOG_FORMAT: true,

SWAGGER_USER: valueGenerator.string(),
SWAGGER_PASSWORD: valueGenerator.string(),
Expand All @@ -22,6 +23,7 @@ export const ENVIRONMENT_VARIABLES = Object.freeze({
export const getEnvironmentVariablesForProcessEnv = (): NodeJS.ProcessEnv => ({
...ENVIRONMENT_VARIABLES,
REDACT_LOGS: ENVIRONMENT_VARIABLES.REDACT_LOGS.toString(),
SINGLE_LINE_LOG_FORMAT: ENVIRONMENT_VARIABLES.SINGLE_LINE_LOG_FORMAT.toString(),
APIM_INFORMATICA_MAX_REDIRECTS: ENVIRONMENT_VARIABLES.APIM_INFORMATICA_MAX_REDIRECTS.toString(),
APIM_INFORMATICA_TIMEOUT: ENVIRONMENT_VARIABLES.APIM_INFORMATICA_TIMEOUT.toString(),
});
Expand Down

0 comments on commit ed64da6

Please sign in to comment.