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:
Ignas Kiela 2023-12-18 05:25:22 +02:00
parent c67ff44207
commit 66560f9977

View file

@ -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;
}