Просмотр исходного кода

log number of updates for future debugging

Brian Gough 9 лет назад
Родитель
Сommit
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,