Skip to content

Commit

Permalink
Fix undefined log level
Browse files Browse the repository at this point in the history
  • Loading branch information
riccardobl committed May 13, 2024
1 parent 165279c commit caddf84
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Logger.ts
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ export default class Logger {
}

levelToValue(level: string) {
return LogLevel[level] ? LogLevel[level] : LogLevel.debug;
return LogLevel[level] == "undefined" ? LogLevel.debug : LogLevel[level];
}

log(level: string, ...args) {
Expand Down

0 comments on commit caddf84

Please sign in to comment.