diff --git a/CHANGELOG.md b/CHANGELOG.md index 9d8eb54..42645e1 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/index.js b/index.js index e319040..f666319 100644 --- a/index.js +++ b/index.js @@ -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) diff --git a/package.json b/package.json index fe02a64..064d26c 100644 --- a/package.json +++ b/package.json @@ -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": [