diff options
author | Chocobozzz <me@florianbigard.com> | 2022-08-11 11:30:06 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2022-08-11 11:30:06 +0200 |
commit | ab08ab4e284ad145de64ff9e1c9cf8149f701e29 (patch) | |
tree | 82735dc06e2e1cb47a92a49c9996b12668f5f2f9 /server/lib/redis.ts | |
parent | aeb112edbe8524fdd25fcaa339e8cfab63bc16db (diff) | |
download | PeerTube-ab08ab4e284ad145de64ff9e1c9cf8149f701e29.tar.gz PeerTube-ab08ab4e284ad145de64ff9e1c9cf8149f701e29.tar.zst PeerTube-ab08ab4e284ad145de64ff9e1c9cf8149f701e29.zip |
Don't crash on redis connection error
Diffstat (limited to 'server/lib/redis.ts')
-rw-r--r-- | server/lib/redis.ts | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/server/lib/redis.ts b/server/lib/redis.ts index d6d053d2f..9b3c72300 100644 --- a/server/lib/redis.ts +++ b/server/lib/redis.ts | |||
@@ -33,6 +33,7 @@ class Redis { | |||
33 | this.initialized = true | 33 | this.initialized = true |
34 | 34 | ||
35 | this.client = createClient(Redis.getRedisClientOptions()) | 35 | this.client = createClient(Redis.getRedisClientOptions()) |
36 | this.client.on('error', err => logger.error('Redis Client Error', { err })) | ||
36 | 37 | ||
37 | logger.info('Connecting to redis...') | 38 | logger.info('Connecting to redis...') |
38 | 39 | ||