mirror of
https://github.com/brendan-ch/project-inter-server.git
synced 2026-04-19 08:50:29 +00:00
Add error logging for unexpected Redis disconnections
This commit is contained in:
@@ -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() {
|
||||||
|
|||||||
Reference in New Issue
Block a user