mirror of
				https://github.com/advplyr/audiobookshelf.git
				synced 2025-10-27 11:18:14 +01: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…
	
		Reference in New Issue
	
	Block a user