app: remove empty password

This commit is contained in:
DIYgod 2018-05-18 14:59:04 +08:00
parent b21dc61da8
commit 108f4bf0ce
No known key found for this signature in database
GPG Key ID: EC0B76A252D3EF67
2 changed files with 4 additions and 1 deletions

View File

@ -71,7 +71,7 @@ if (config.cacheType === 'memory') {
logger.error('Redis error: ', e);
},
onconnect: () => {
logger.info('Redis connect.');
logger.info('Redis connected.');
},
})
);

View File

@ -26,6 +26,9 @@ module.exports = function(options = {}) {
/**
* redisClient
*/
if (!redisOptions.password) {
delete redisOptions.password;
}
const redisClient = wrapper(Redis.createClient(redisUrl, redisOptions));
redisClient.on('error', (error) => {
redisAvailable = false;