diff --git a/CHANGELOG.md b/CHANGELOG.md index 783d02f..b52341c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ ### Unreleased +### [2.0.6] - 2024-11-08 + +- fix missing error handler on redis client [#45](https://github.com/haraka/haraka-plugin-redis/issues/45) + ### [2.0.5] - 2024-10-22 - html/client: updated dnsbl -> dns-list diff --git a/index.js b/index.js index ee2f017..1779edd 100644 --- a/index.js +++ b/index.js @@ -149,6 +149,9 @@ exports.redis_subscribe_all_results = async function (next) { if (this.pubsub) return // already subscribed? this.pubsub = redis.createClient(this.redisCfg.pubsub) + this.pubsub.on('error', (err) => { + this.logerror(err.message) + }) await this.pubsub.connect() await this.pubsub.pSubscribe('result-*', (message, channel) => { diff --git a/package.json b/package.json index e550c02..bccd609 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "haraka-plugin-watch", - "version": "2.0.5", + "version": "2.0.6", "description": "Watch live SMTP traffic in a web interface", "main": "index.js", "files": [