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 1ff2924 commit 935be87
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/cache.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,10 @@ class cache {
this.redis.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('[cache] 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('[cache] failed to connect to redis, we will attemp again...')
connectionFailedAttemp++
cache.connect()
})
Expand Down

0 comments on commit 935be87

Please sign in to comment.