mirror of
				https://github.com/Unleash/unleash.git
				synced 2025-10-27 11:02:16 +01:00 
			
		
		
		
	chore: log error properly (#6596)
## About the changes We see some logs with: `Failed to store events: Error: The query is empty` which suggests we're not sending events to batchStore. This will help us confirm that and will give us better insights
This commit is contained in:
		
							parent
							
								
									3539f3db02
								
							
						
					
					
						commit
						26e696a090
					
				| @ -158,7 +158,10 @@ class EventStore implements IEventStore { | ||||
|         try { | ||||
|             await this.db(TABLE).insert(events.map(this.eventToDbRow)); | ||||
|         } catch (error: unknown) { | ||||
|             this.logger.warn(`Failed to store events: ${error}`); | ||||
|             this.logger.warn( | ||||
|                 `Failed to store events: ${JSON.stringify(events)}`, | ||||
|                 error, | ||||
|             ); | ||||
|         } | ||||
|     } | ||||
| 
 | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user