From d9763eb1057fbfd511afb85669e58ce30df04f50 Mon Sep 17 00:00:00 2001 From: Brian Gough Date: Tue, 23 May 2017 13:55:10 +0100 Subject: [PATCH] log corrupt updates --- services/track-changes/app/coffee/UpdatesManager.coffee | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/services/track-changes/app/coffee/UpdatesManager.coffee b/services/track-changes/app/coffee/UpdatesManager.coffee index af001f7959..3a2cbf29c1 100644 --- a/services/track-changes/app/coffee/UpdatesManager.coffee +++ b/services/track-changes/app/coffee/UpdatesManager.coffee @@ -97,7 +97,9 @@ module.exports = UpdatesManager = length = docUpdates.length # parse the redis strings into ShareJs updates RedisManager.expandDocUpdates docUpdates, (error, rawUpdates) -> - return callback(error) if error? + if error? + logger.err project_id: project_id, doc_id: doc_id, docUpdates: docUpdates, "failed to parse docUpdates" + return callback(error) logger.log project_id: project_id, doc_id: doc_id, rawUpdates: rawUpdates, "retrieved raw updates from redis" UpdatesManager.compressAndSaveRawUpdates project_id, doc_id, rawUpdates, temporary, (error) -> return callback(error) if error?