Better handle error

This commit is contained in:
Eric Bailey
2024-05-07 14:54:39 -05:00
parent 93df04a0d4
commit 2485eff56b
+4 -2
View File
@@ -413,8 +413,10 @@ export class MessagesEventBus {
if (needsEmit) {
try {
this.emitter.emit('events', batch)
} catch (e) {
logger.error(e)
} catch (e: any) {
logger.error(e, {
context: `${LOGGER_CONTEXT}: process latest events`,
})
}
}
}