mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2025-12-31 19:49:22 -05:00
Compare commits
2 Commits
progress_b
...
fix_logger
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
c3aad9486c | ||
|
|
5ee6005112 |
@@ -117,7 +117,7 @@ class Logger {
|
||||
if (level < LogLevel.FATAL && level < this.logLevel) return
|
||||
const consoleMethod = Logger.ConsoleMethods[levelName]
|
||||
console[consoleMethod](`[${this.timestamp}] ${levelName}:`, ...args)
|
||||
this.#logToFileAndListeners(level, levelName, args, source)
|
||||
return this.#logToFileAndListeners(level, levelName, args, source)
|
||||
}
|
||||
|
||||
trace(...args) {
|
||||
@@ -141,7 +141,7 @@ class Logger {
|
||||
}
|
||||
|
||||
fatal(...args) {
|
||||
this.#log('FATAL', this.source, ...args)
|
||||
return this.#log('FATAL', this.source, ...args)
|
||||
}
|
||||
|
||||
note(...args) {
|
||||
|
||||
Reference in New Issue
Block a user