Add redis client error listener

This commit is contained in:
calzoneman 2016-06-13 23:09:27 -07:00
parent b6bb0aa56d
commit 77d84d5b76
2 changed files with 5 additions and 1 deletions

View file

@ -15,6 +15,10 @@ class PartitionChannelIndex {
this.redisClient = redisClient;
this.uid = uuid.v4();
this.cachedList = [];
this.redisClient.on('error', error => {
Logger.errlog.log(`Redis error: ${error}`);
});
process.nextTick(() => {
SERVER = require('../server').getServer();
this.refreshCache();