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