From be96548199b8831580a9c6630506fd301ade4ab7 Mon Sep 17 00:00:00 2001 From: Brian Gough Date: Fri, 12 May 2017 14:07:59 +0100 Subject: [PATCH] log number of updates for future debugging --- services/document-updater/app/coffee/UpdateManager.coffee | 1 + 1 file changed, 1 insertion(+) diff --git a/services/document-updater/app/coffee/UpdateManager.coffee b/services/document-updater/app/coffee/UpdateManager.coffee index 269b16ee67..12c5c7e95b 100644 --- a/services/document-updater/app/coffee/UpdateManager.coffee +++ b/services/document-updater/app/coffee/UpdateManager.coffee @@ -40,6 +40,7 @@ module.exports = UpdateManager = fetchAndApplyUpdates: (project_id, doc_id, callback = (error) ->) -> RealTimeRedisManager.getPendingUpdatesForDoc doc_id, (error, updates) => return callback(error) if error? + logger.log {project_id: project_id, doc_id: doc_id, count: updates.length}, "processing updates" if updates.length == 0 return callback() async.eachSeries updates,