Преглед изворни кода

log number of updates for future debugging

Brian Gough пре 9 година
родитељ
комит
be96548199
1 измењених фајлова са 1 додато и 0 уклоњено
  1. 1 0
      services/document-updater/app/coffee/UpdateManager.coffee

+ 1 - 0
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,