diff --git a/lib/hk-util.js b/lib/hk-util.js index 495f4ff81..cea5e5636 100644 --- a/lib/hk-util.js +++ b/lib/hk-util.js @@ -639,7 +639,15 @@ const handleGetHistory = function (Env, Server, seq, userId, parsed) { Server.send(userId, [0, HISTORY_KEEPER_ID, 'MSG', userId, JSON.stringify(msg)], readMore); }, (err) => { if (err && err.code !== 'ENOENT') { - if (err.message !== 'EINVAL') { Log.error("HK_GET_HISTORY", { + if (err.message === "EUNKNOWN") { + Log.error("HK_GET_HISTORY", { + channel: channelName, + lastKnownHash: lastKnownHash, + userId: userId, + sessions: Object.keys(HK.getNetfluxSession(Env, userId) || {}), + err: err && err.message || err, + }); + } else if (err.message !== 'EINVAL') { Log.error("HK_GET_HISTORY", { channel: channelName, err: err && err.message || err, stack: err && err.stack,