forked from FoundKeyGang/FoundKey
Add missing else in log level checking
I was getting confused for a good while on why this message showed up even though I set the environment properly
This commit is contained in:
parent
c67ff44207
commit
66560f9977
1 changed files with 3 additions and 1 deletions
|
@ -24,7 +24,9 @@ for (const key of Object.keys(envOption) as (keyof typeof envOption)[]) {
|
|||
if (value.toLowerCase() in LOG_LEVELS) {
|
||||
envOption.logLevel = LOG_LEVELS[value.toLowerCase()];
|
||||
}
|
||||
else {
|
||||
console.log('Unknown log level ' + JSON.stringify(value.toLowerCase()) + ', defaulting to "info"');
|
||||
}
|
||||
} else {
|
||||
envOption[key] = true;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue