Skip to content
Permalink
Browse files

fix(brigade-worker): uppercase BRIGADE_LOG_LEVEL val for deriving cor…

…rect enum val

Signed-off-by: Vaughn Dice <vadice@microsoft.com>
  • Loading branch information
vdice committed May 20, 2019
1 parent af8b347 commit 28367095cc6896843cc5ace6d0a1da6aee96bebd
Showing with 2 additions and 1 deletion.
  1. +2 −1 brigade-worker/src/index.ts
@@ -84,7 +84,8 @@ if (script) {
require(script);
}

const logLevel = LogLevel[process.env.BRIGADE_LOG_LEVEL || "LOG"];
// Log level may come in as lowercased 'log', 'info', etc., if run by the brig cli
const logLevel = LogLevel[process.env.BRIGADE_LOG_LEVEL.toUpperCase() || "LOG"];
const logger = new ContextLogger([], logLevel);

const version = require("../package.json").version;

0 comments on commit 2836709

Please sign in to comment.
You can’t perform that action at this time.