From 6bffa4d9e0644bcaa93a795e35f796a79608200f Mon Sep 17 00:00:00 2001 From: Brian Gough Date: Wed, 25 Mar 2015 16:54:36 +0000 Subject: [PATCH] don't log docLines when document removed from redis they can now be binary gzipped data which messes up the logs --- services/document-updater/app/coffee/RedisManager.coffee | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/services/document-updater/app/coffee/RedisManager.coffee b/services/document-updater/app/coffee/RedisManager.coffee index 523d7057a9..5ca4e1c174 100644 --- a/services/document-updater/app/coffee/RedisManager.coffee +++ b/services/document-updater/app/coffee/RedisManager.coffee @@ -32,7 +32,6 @@ module.exports = RedisManager = removeDocFromMemory : (project_id, doc_id, callback)-> logger.log project_id:project_id, doc_id:doc_id, "removing doc from redis" multi = rclient.multi() - multi.get keys.docLines(doc_id:doc_id) multi.del keys.docLines(doc_id:doc_id) multi.del keys.projectKey(doc_id:doc_id) multi.del keys.docVersion(doc_id:doc_id) @@ -43,8 +42,7 @@ module.exports = RedisManager = logger.err project_id:project_id, doc_id:doc_id, err:err, "error removing doc from redis" callback(err, null) else - docLines = replys[0] - logger.log project_id:project_id, doc_id:doc_id, docLines:docLines, "removed doc from redis" + logger.log project_id:project_id, doc_id:doc_id, "removed doc from redis" callback() getDoc : (doc_id, callback = (error, lines, version) ->)->