mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2026-11-27 10:52:47 +01:00
Simplify log level determination
This commit is contained in:
1 parent
d3fd19da65
commit
10acf28fa6
3 files changed
+6
-31
No files matched your search
+1
-6
@@ -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)
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in new issue
Block a user