From c2b2057a15ba7414cf2a0d50479e4e5928bcb8ef Mon Sep 17 00:00:00 2001 From: Alexis Date: Thu, 16 Sep 2021 07:51:35 +0930 Subject: [PATCH] fix: log on NCHAN disconnect --- app/core/utils/clients/nchan.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/core/utils/clients/nchan.ts b/app/core/utils/clients/nchan.ts index dd45de1d3..902e71a8a 100644 --- a/app/core/utils/clients/nchan.ts +++ b/app/core/utils/clients/nchan.ts @@ -52,6 +52,10 @@ const subscribe = async (endpoint: string) => new Promise(resolve => { resolve(); }); + sub.on('disconnect', function (_event) { + nchanLogger.debug('NCHAN:DISCONNECTED:%s', endpoint); + }); + sub.on('message', function (message, _messageMetadata) { try { const state = parseConfig({