Skip to content

Commit

Permalink
debug: log effective config
Browse files Browse the repository at this point in the history
  • Loading branch information
philipparndt committed Jan 6, 2024
1 parent 40f2f6f commit 7d7c9c1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion app/lib/config/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,9 @@ function replaceEnvVariables (input: string) {

export const loadConfig = (file: string) => {
const buffer = fs.readFileSync(file)
applyConfig(JSON.parse(replaceEnvVariables(buffer.toString())))
const effectiveConfig = replaceEnvVariables(buffer.toString())
log.info("Using config", effectiveConfig)
applyConfig(JSON.parse(effectiveConfig))
}

export const applyConfig = (config: any) => {
Expand Down

0 comments on commit 7d7c9c1

Please sign in to comment.