diff --git a/lib/commands/channel.js b/lib/commands/channel.js index c36c3424d..5f8216434 100644 --- a/lib/commands/channel.js +++ b/lib/commands/channel.js @@ -180,7 +180,7 @@ Channel.trimHistory = function (Env, safeKey, data, cb) { Env.Log.info('HK_TRIM_HISTORY', { unsafeKey: unsafeKey, channelId: channelId, - status: err? String(e): 'SUCCESS', + status: err? String(err): 'SUCCESS', }); if (err) { return void cb(err); } // clear historyKeeper's cache for this channel