Add error logging for unexpected Redis disconnections

This commit is contained in:
2025-09-01 11:58:27 -07:00
parent 6901f6d45b
commit 051f6c12e7

View File

@@ -13,6 +13,9 @@ export abstract class BaseRedisRepository {
}), }),
) { ) {
this.redisClient = redisClient; this.redisClient = redisClient;
this.redisClient.on('error', (err) => {
console.error(err.stack);
});
} }
get isReady() { get isReady() {