Simplify log level determination

This commit is contained in:
Nicholas Wallace committed 2025-03-08 12:46:36 -07:00
1 parent d3fd19da65
commit 10acf28fa6
3 files changed
+6 -31

No files matched your search

+1 -6
View File
@@ -21,12 +21,7 @@ class Logger {
}
get levelString() {
for (const key in LogLevel) {
if (LogLevel[key] === this.logLevel) {
return key
}
}
return 'UNKNOWN'
return this.getLogLevelString(this.logLevel)
}
/**