From 87f55773bdc93dcb211e7a22dedd9a61e45ae3ff Mon Sep 17 00:00:00 2001 From: Phil Kunz Date: Sun, 13 Jan 2019 21:35:57 +0100 Subject: [PATCH] fix(core): update --- ts/qenv.classes.qenv.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ts/qenv.classes.qenv.ts b/ts/qenv.classes.qenv.ts index 5d3ec6a..f2eb0f0 100644 --- a/ts/qenv.classes.qenv.ts +++ b/ts/qenv.classes.qenv.ts @@ -74,7 +74,6 @@ export class Qenv { try { envYml = plugins.smartfile.fs.toObjectSync(this.envFilePathAbsolute); } catch (err) { - console.log("env file couldn't be found at " + this.envFilePathAbsolute); envYml = {}; } let envVar: string; @@ -129,12 +128,16 @@ export class Qenv { let chosenVar: string = null; if (envVar) { + this.logger.log('ok', `found ${requiredEnvVar} as environment variable`); chosenVar = envVar; } else if (envFileVar) { + this.logger.log('ok', `found ${requiredEnvVar} as env.yml variable`); chosenVar = envFileVar; } else if (dockerSecret) { + this.logger.log('ok', `found ${requiredEnvVar} as docker secret`); chosenVar = dockerSecret; } else if (dockerSecretJson) { + this.logger.log('ok', `found ${requiredEnvVar} as docker secret.json`); chosenVar = dockerSecretJson; } return chosenVar;