diff --git a/server/src/queuehandler.js b/server/src/queuehandler.js index acb1242..3f0aac8 100755 --- a/server/src/queuehandler.js +++ b/server/src/queuehandler.js @@ -17,11 +17,15 @@ function getRedis() { 'You use the default password for Redis/KeyDB, please change it!' ); } - return new Redis({ + const redis = new Redis({ port: REDIS_PORT, host: REDIS_HOST, password: REDIS_PASSWORD }); + redis.on('error', error => { + logger.error('Could not connect to Redis/KeyDB', error); + }); + return redis; } export async function publish(channel, message) {