mirror of
				https://github.com/advplyr/audiobookshelf.git
				synced 2025-10-27 11:18:14 +01:00 
			
		
		
		
	Merge pull request #3919 from advplyr/fix_logger_fatal
Fix Logger.fatal to ensure crash_logs.txt is written to
This commit is contained in:
		
						commit
						344de941ff
					
				| @ -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) { | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user