Skip to content

Commit

Permalink
Fix Logger setLogLevel with enum case mismatch (#947).
Browse files Browse the repository at this point in the history
  • Loading branch information
ricmoo committed Jul 20, 2020
1 parent e3f7426 commit 5443363
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/logger/src.ts/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -329,7 +329,7 @@ export class Logger {
}

static setLogLevel(logLevel: LogLevel): void {
const level = LogLevels[logLevel];
const level = LogLevels[logLevel.toLowerCase()];
if (level == null) {
Logger.globalLogger().warn("invalid log level - " + logLevel);
return;
Expand Down

0 comments on commit 5443363

Please sign in to comment.