mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2025-07-10 01:15:06 +02:00
Simplify log level determination
This commit is contained in:
parent
d3fd19da65
commit
10acf28fa6
3 changed files with 6 additions and 31 deletions
|
@ -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)
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue