diff --git a/lib/hk-util.js b/lib/hk-util.js index 3b8c07e09..562114ec7 100644 --- a/lib/hk-util.js +++ b/lib/hk-util.js @@ -622,7 +622,8 @@ const handleGetHistory = function (Env, Server, seq, userId, parsed) { }, (err) => { if (err && err.code !== 'ENOENT') { if (err.message !== 'EINVAL') { Log.error("HK_GET_HISTORY", { - err: err && err.message, + channel: channelName, + err: err && err.message || err, stack: err && err.stack, }); } const parsedMsg = {error:err.message, channel: channelName, txid: txid};