mirror of
https://github.com/omnivore-app/omnivore.git
synced 2026-03-11 08:54:26 +00:00
More logging
This commit is contained in:
parent
ec765c0f5c
commit
68b7b93586
1 changed files with 6 additions and 1 deletions
|
|
@ -25,6 +25,10 @@ export class RedisDataSource {
|
|||
this.workerRedisClient = createIORedisClient(this.options)
|
||||
this.isInitialized = true
|
||||
|
||||
this.redisClient?.on('close', () => {
|
||||
console.trace('closing redis client')
|
||||
})
|
||||
|
||||
return this
|
||||
}
|
||||
|
||||
|
|
@ -57,10 +61,11 @@ const createIORedisClient = (
|
|||
}
|
||||
: undefined
|
||||
|
||||
const redisOptions = {
|
||||
const redisOptions: RedisOptions = {
|
||||
tls,
|
||||
connectTimeout: 10000,
|
||||
maxRetriesPerRequest: null,
|
||||
offlineQueue: false,
|
||||
// reconnectOnError: (err: Error) => {
|
||||
// const targetErrors = [/READONLY/, /ETIMEDOUT/]
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue