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

log the case where there are no entries in the document history

Brian Gough 11 лет назад
Родитель
Сommit
1c1b1d9595
1 измененных файлов с 1 добавлено и 0 удалено
  1. 1 0
      services/track-changes/app/coffee/DocArchiveManager.coffee

+ 1 - 0
services/track-changes/app/coffee/DocArchiveManager.coffee

@@ -28,6 +28,7 @@ module.exports = DocArchiveManager =
 		MongoManager.getDocChangesCount doc_id, (error, count) ->
 			return callback(error) if error?
 			if count == 0
+				logger.log {project_id, doc_id}, "document history is empty, not archiving"
 				return callback()
 			else
 				MongoManager.getLastCompressedUpdate doc_id, (error, update) ->