Skip to content

Commit

Permalink
fix(uppercase) compatible UpperCase level name
Browse files Browse the repository at this point in the history
  • Loading branch information
huan committed Apr 30, 2017
1 parent 7311431 commit 00e37ff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/brolog.ts
Expand Up @@ -49,7 +49,7 @@ export class Brolog {
// console.log('levelName: ' + levelName)
// http://stackoverflow.com/a/21294925/1123955
// XXX: fix the any here?
const logLevel = LogLevel[levelName as any] as any
const logLevel = LogLevel[levelName.toLowerCase() as any] as any
if (logLevel === undefined) { // be aware of number 0 here
// console.log(logLevel)
// console.log(LogLevel)
Expand Down

0 comments on commit 00e37ff

Please sign in to comment.