mirror of
				https://github.com/advplyr/audiobookshelf.git
				synced 2025-11-03 19:07:00 -05:00 
			
		
		
		
	Small change to logging of unhandled rejections
This commit is contained in:
		
							parent
							
								
									942bd0859f
								
							
						
					
					
						commit
						d796849d74
					
				@ -182,7 +182,7 @@ class Server {
 | 
			
		||||
     * @see https://nodejs.org/api/process.html#event-unhandledrejection
 | 
			
		||||
     */
 | 
			
		||||
    process.on('unhandledRejection', async (reason, promise) => {
 | 
			
		||||
      await Logger.fatal(`[Server] Unhandled rejection: ${reason}, promise:`, util.format('%O', promise))
 | 
			
		||||
      await Logger.fatal('[Server] Unhandled rejection:', reason, '\npromise:', util.format('%O', promise))
 | 
			
		||||
      process.exit(1)
 | 
			
		||||
    })
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user