Skip to content

Commit

Permalink
feat(cache, ab): attach module name
Browse files Browse the repository at this point in the history
  • Loading branch information
a632079 committed Jun 15, 2020
1 parent c28e9f1 commit 1ff2924
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/extensions/sentencesABSwitcher.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,10 @@ class SentencesABSwitcher extends Cache {
tmp.on('error', err => {
console.log(colors.red(err.stack))
if (connectionFailedAttemp >= 3) {
winston.error('Attemp to connect to redis ' + connectionFailedAttemp + ' times, but all failed. Process exiting.')
winston.error('[AB] attemp to connect to redis ' + connectionFailedAttemp + ' times, but all failed, process exiting.')
process.exit(1)
}
winston.error('failed to connect to redis. Attemp again...')
winston.error('[AB] failed to connect to redis, we will attemp again...')
connectionFailedAttemp++
SentencesABSwitcher.connect()
})
Expand Down

0 comments on commit 1ff2924

Please sign in to comment.