Skip to content

Commit

Permalink
fix missing error handler on redis client (#61)
Browse files Browse the repository at this point in the history
  • Loading branch information
DoobleD authored Nov 8, 2024
1 parent 15825ea commit a8c1185
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/).

### Unreleased

### [2.1.6] - 2024-11-08

- fix missing error handler on redis client [#45](https://github.com/haraka/haraka-plugin-redis/issues/45)

### [2.1.5] - 2024-04-23

- doc(README): remove spurious markdown link
Expand Down
3 changes: 3 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,9 @@ exports.results_init = async function (next, connection) {
}

connection.notes.redis = redis.createClient(this.redisCfg.pubsub)
connection.notes.redis.on('error', (err) => {
connection.logerror(this, err.message)
})
await connection.notes.redis.connect()

const pattern = this.get_redis_sub_channel(connection)
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "haraka-plugin-karma",
"version": "2.1.5",
"version": "2.1.6",
"description": "A heuristics scoring and reputation engine for SMTP connections",
"main": "index.js",
"files": [
Expand Down

0 comments on commit a8c1185

Please sign in to comment.